Skip to content
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

[14] php7.3 CI #11790

Merged
merged 2 commits into from
Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ pipeline:
when:
matrix:
TESTS: syntax-php7.1
syntax-php7.2:
image: nextcloudci/php7.2:php7.2-12
commands:
- composer install
- ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php --exclude 3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php .
when:
matrix:
TESTS: syntax-php7.2
syntax-php7.3:
image: nextcloudci/php7.3:php7.3-1
commands:
- composer install
- ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php --exclude 3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php .
when:
matrix:
TESTS: syntax-php7.3
phan:
image: nextcloudci/php7.2:php7.2-12
commands:
Expand Down Expand Up @@ -191,6 +207,14 @@ pipeline:
matrix:
DB: NODB
PHP: 7.2
nodb-php7.3:
image: nextcloudci/php7.3:php7.3-1
commands:
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
when:
matrix:
DB: NODB
PHP: 7.3
sqlite-php7.0:
image: nextcloudci/php7.0:php7.0-19
commands:
Expand All @@ -215,6 +239,14 @@ pipeline:
matrix:
DB: sqlite
PHP: 7.2
sqlite-php7.3:
image: nextcloudci/php7.3:php7.3-1
commands:
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
when:
matrix:
DB: sqlite
PHP: 7.3
mysql-php7.0:
image: nextcloudci/php7.0:php7.0-19
commands:
Expand All @@ -239,6 +271,14 @@ pipeline:
matrix:
DB: mysql
PHP: 7.2
mysql-php7.3:
image: nextcloudci/php7.3:php7.3-1
commands:
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
when:
matrix:
DB: mysql
PHP: 7.3
mysql5.6-php7.0:
image: nextcloudci/php7.0:php7.0-19
commands:
Expand Down Expand Up @@ -313,6 +353,14 @@ pipeline:
matrix:
DB: mysqlmb4
PHP: 7.2
mysqlmb4-php7.3:
image: nextcloudci/php7.3:php7.3-1
commands:
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
when:
matrix:
DB: mysqlmb4
PHP: 7.3
integration-capabilities_features:
image: nextcloudci/integration-php7.0:integration-php7.0-8
commands:
Expand Down Expand Up @@ -769,6 +817,9 @@ matrix:
- DB: NODB
PHP: 7.2
ENABLE_REDIS: false
- DB: NODB
PHP: 7.3
ENABLE_REDIS: false
- DB: sqlite
PHP: 7.0
ENABLE_REDIS: true
Expand All @@ -778,6 +829,9 @@ matrix:
- DB: sqlite
PHP: 7.2
ENABLE_REDIS: false
- DB: sqlite
PHP: 7.3
ENABLE_REDIS: false
- DB: mysql
PHP: 7.0
ENABLE_REDIS: true
Expand All @@ -787,6 +841,9 @@ matrix:
- DB: mysql
PHP: 7.2
ENABLE_REDIS: false
- DB: mysql
PHP: 7.3
ENABLE_REDIS: false
- DB: mysql5.6
PHP: 7.0
ENABLE_REDIS: true
Expand Down Expand Up @@ -820,6 +877,9 @@ matrix:
- DB: mysqlmb4
PHP: 7.2
ENABLE_REDIS: false
- DB: mysqlmb4
PHP: 7.3
ENABLE_REDIS: false
- TESTS: integration-capabilities_features
- TESTS: integration-federation_features
- TESTS: integration-maintenance-mode
Expand Down Expand Up @@ -874,6 +934,8 @@ matrix:
- TESTS: jsunit
- TESTS: syntax-php7.0
- TESTS: syntax-php7.1
- TESTS: syntax-php7.2
- TESTS: syntax-php7.3
- TESTS: phan
- TESTS: litmus-v1
- TESTS: litmus-v2
Expand Down
6 changes: 3 additions & 3 deletions lib/versioncheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
exit(-1);
}

// Show warning if > PHP 7.2 is used as Nextcloud is not compatible with > PHP 7.2 for now
if (version_compare(PHP_VERSION, '7.3.0') !== -1) {
// Show warning if > PHP 7.3 is used as Nextcloud is not compatible with > PHP 7.3 for now
if (version_compare(PHP_VERSION, '7.4.0') !== -1) {
http_response_code(500);
echo 'This version of Nextcloud is not compatible with > PHP 7.2.<br/>';
echo 'This version of Nextcloud is not compatible with > PHP 7.3.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(-1);
}