Merge pull request #11745 from nextcloud/ci/php73
Make php7.3 compatible
This commit is contained in:
commit
6e56a7b31e
53
.drone.yml
53
.drone.yml
|
@ -89,6 +89,14 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: syntax-php7.2
|
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:
|
phan:
|
||||||
image: nextcloudci/php7.2:php7.2-12
|
image: nextcloudci/php7.2:php7.2-12
|
||||||
commands:
|
commands:
|
||||||
|
@ -214,6 +222,14 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
DB: NODB
|
DB: NODB
|
||||||
PHP: 7.2
|
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:
|
sqlite-php7.0:
|
||||||
image: nextcloudci/php7.0:php7.0-19
|
image: nextcloudci/php7.0:php7.0-19
|
||||||
commands:
|
commands:
|
||||||
|
@ -238,6 +254,14 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
DB: sqlite
|
DB: sqlite
|
||||||
PHP: 7.2
|
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:
|
mysql-php7.0:
|
||||||
image: nextcloudci/php7.0:php7.0-19
|
image: nextcloudci/php7.0:php7.0-19
|
||||||
commands:
|
commands:
|
||||||
|
@ -262,6 +286,14 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
DB: mysql
|
DB: mysql
|
||||||
PHP: 7.2
|
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:
|
mysql5.6-php7.0:
|
||||||
image: nextcloudci/php7.0:php7.0-19
|
image: nextcloudci/php7.0:php7.0-19
|
||||||
commands:
|
commands:
|
||||||
|
@ -336,6 +368,14 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
DB: mysqlmb4
|
DB: mysqlmb4
|
||||||
PHP: 7.2
|
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:
|
integration-capabilities_features:
|
||||||
image: nextcloudci/integration-php7.0:integration-php7.0-8
|
image: nextcloudci/integration-php7.0:integration-php7.0-8
|
||||||
commands:
|
commands:
|
||||||
|
@ -804,6 +844,9 @@ matrix:
|
||||||
- DB: NODB
|
- DB: NODB
|
||||||
PHP: 7.2
|
PHP: 7.2
|
||||||
ENABLE_REDIS: false
|
ENABLE_REDIS: false
|
||||||
|
- DB: NODB
|
||||||
|
PHP: 7.3
|
||||||
|
ENABLE_REDIS: false
|
||||||
- DB: sqlite
|
- DB: sqlite
|
||||||
PHP: 7.0
|
PHP: 7.0
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
|
@ -813,6 +856,9 @@ matrix:
|
||||||
- DB: sqlite
|
- DB: sqlite
|
||||||
PHP: 7.2
|
PHP: 7.2
|
||||||
ENABLE_REDIS: false
|
ENABLE_REDIS: false
|
||||||
|
- DB: sqlite
|
||||||
|
PHP: 7.3
|
||||||
|
ENABLE_REDIS: false
|
||||||
- DB: mysql
|
- DB: mysql
|
||||||
PHP: 7.0
|
PHP: 7.0
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
|
@ -822,6 +868,9 @@ matrix:
|
||||||
- DB: mysql
|
- DB: mysql
|
||||||
PHP: 7.2
|
PHP: 7.2
|
||||||
ENABLE_REDIS: false
|
ENABLE_REDIS: false
|
||||||
|
- DB: mysql
|
||||||
|
PHP: 7.3
|
||||||
|
ENABLE_REDIS: false
|
||||||
- DB: mysql5.6
|
- DB: mysql5.6
|
||||||
PHP: 7.0
|
PHP: 7.0
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
|
@ -855,6 +904,9 @@ matrix:
|
||||||
- DB: mysqlmb4
|
- DB: mysqlmb4
|
||||||
PHP: 7.2
|
PHP: 7.2
|
||||||
ENABLE_REDIS: false
|
ENABLE_REDIS: false
|
||||||
|
- DB: mysqlmb4
|
||||||
|
PHP: 7.3
|
||||||
|
ENABLE_REDIS: false
|
||||||
- TESTS: integration-capabilities_features
|
- TESTS: integration-capabilities_features
|
||||||
- TESTS: integration-federation_features
|
- TESTS: integration-federation_features
|
||||||
- TESTS: integration-maintenance-mode
|
- TESTS: integration-maintenance-mode
|
||||||
|
@ -912,6 +964,7 @@ matrix:
|
||||||
- TESTS: syntax-php7.0
|
- TESTS: syntax-php7.0
|
||||||
- TESTS: syntax-php7.1
|
- TESTS: syntax-php7.1
|
||||||
- TESTS: syntax-php7.2
|
- TESTS: syntax-php7.2
|
||||||
|
- TESTS: syntax-php7.3
|
||||||
- TESTS: phan
|
- TESTS: phan
|
||||||
- TESTS: litmus-v1
|
- TESTS: litmus-v1
|
||||||
- TESTS: litmus-v2
|
- TESTS: litmus-v2
|
||||||
|
|
|
@ -9,10 +9,10 @@ if (version_compare(PHP_VERSION, '7.0') === -1) {
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show warning if > PHP 7.2 is used as Nextcloud is not compatible with > PHP 7.2 for now
|
// 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.3.0') !== -1) {
|
if (version_compare(PHP_VERSION, '7.4.0') !== -1) {
|
||||||
http_response_code(500);
|
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 . '.';
|
echo 'You are currently running ' . PHP_VERSION . '.';
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue