-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable10] drop php 5.6 support #34698
Changes from all commits
80a9c61
9819bae
a1f4218
942a44c
e88d09b
08cc63b
ef2e136
42a3a8b
c9672b7
1fc4ef3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,6 @@ clover.xml | |
/tests/output | ||
.php_cs.cache | ||
.php_cs | ||
|
||
# CI | ||
.cache |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -363,6 +363,9 @@ vendor: composer.lock | |
vendor/bamarni/composer-bin-plugin: composer.lock | ||
composer install | ||
|
||
.PHONY: vendor-bin-deps | ||
vendor-bin-deps: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor vendor-bin/phan/vendor vendor-bin/phpstan/vendor vendor-bin/behat/vendor | ||
|
||
vendor-bin/owncloud-codestyle/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/owncloud-codestyle/composer.lock | ||
composer bin owncloud-codestyle install --no-progress | ||
|
||
|
@@ -381,8 +384,17 @@ vendor-bin/phan/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/phan/compo | |
vendor-bin/phan/composer.lock: vendor-bin/phan/composer.json | ||
@echo phan composer.lock is not up to date. | ||
|
||
# The first line of "php --version" output looks like: | ||
# PHP 7.2.16-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Mar 7 2019 20:23:29) ( NTS ) | ||
# We want the 2nd "word", then the first 2 numbers separated by the dot | ||
PHP_MINOR_VERSION = $(shell php --version | head -n 1 | cut -d' ' -f2 | cut -d'.' -f1-2) | ||
|
||
vendor-bin/phpstan/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/phpstan/composer.lock | ||
ifeq "$(PHP_MINOR_VERSION)" "7.0" | ||
@echo "phpstan is not supported on PHP 7.0 so it is not being installed" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will still try to run phpstan later on - just the installation is aborted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes,
and the PHP version is And later steps in the pipeline can happily run code-style checks, If a later step tries to run |
||
else | ||
composer bin phpstan install --no-progress | ||
endif | ||
|
||
vendor-bin/phpstan/composer.lock: vendor-bin/phpstan/composer.json | ||
@echo phpstan composer.lock is not up to date. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While head/cut are quite standard unix tools - not sure if they will be always available everywhere 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What tools+algorithm is good/portable to use for extracting the
7.n
out of the first line of thephp --version
output?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@patrickjahns head and cut should be in any developer's *nix, and with these "standard" simple options. Hopefully they would be on a developer's Mac?
Also, this code will only exist in
stable10
and only until we drop PHP 7.0.What would you like me to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if Mac users complain, they can feel free to send a PR to adjust the Makefile to make it work on they envs.
OC server isn't supported on Mac so developers should not develop directly on Macs, else they're on their own...