mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 10:26:07 -05:00
Merge pull request #1198 from nextcloud/php56-and-70-only
Exclude older PHP versions from .travis.yml
This commit is contained in:
commit
d17e126330
3 changed files with 9 additions and 37 deletions
24
.drone.yml
24
.drone.yml
|
|
@ -3,18 +3,6 @@ build:
|
|||
image: nextcloudci/jsunit:1.0.6
|
||||
commands:
|
||||
- ./autotest-js.sh
|
||||
nodb-php5.4:
|
||||
image: nextcloudci/php5.4:1.0.7
|
||||
commands:
|
||||
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
|
||||
- git submodule update --init
|
||||
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
|
||||
nodb-php5.5:
|
||||
image: nextcloudci/php5.5:1.0.7
|
||||
commands:
|
||||
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
|
||||
- git submodule update --init
|
||||
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
|
||||
nodb-php5.6:
|
||||
image: nextcloudci/php5.6:1.0.6
|
||||
commands:
|
||||
|
|
@ -27,18 +15,6 @@ build:
|
|||
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
|
||||
- git submodule update --init
|
||||
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
|
||||
sqlite-php5.4:
|
||||
image: nextcloudci/php5.4:1.0.7
|
||||
commands:
|
||||
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
|
||||
- git submodule update --init
|
||||
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
|
||||
sqlite-php5.5:
|
||||
image: nextcloudci/php5.5:1.0.7
|
||||
commands:
|
||||
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
|
||||
- git submodule update --init
|
||||
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
|
||||
sqlite-php5.6:
|
||||
image: nextcloudci/php5.6:1.0.6
|
||||
commands:
|
||||
|
|
|
|||
14
.travis.yml
14
.travis.yml
|
|
@ -1,7 +1,7 @@
|
|||
sudo: false
|
||||
language: php
|
||||
php:
|
||||
- 5.4
|
||||
- 5.6
|
||||
|
||||
env:
|
||||
global:
|
||||
|
|
@ -41,21 +41,17 @@ matrix:
|
|||
include:
|
||||
- php: 7.0
|
||||
env: TC=autoloader;TEST_DAV=0
|
||||
- php: 5.4
|
||||
- php: 5.6
|
||||
env: DB=pgsql;TC=litmus-v1
|
||||
- php: 5.4
|
||||
- php: 5.6
|
||||
env: DB=sqlite;TC=carddav
|
||||
- php: 5.4
|
||||
- php: 5.6
|
||||
env: DB=sqlite;TC=caldav
|
||||
- php: 5.4
|
||||
env: DB=sqlite;TC=syntax;TEST_DAV=0
|
||||
- php: 5.5
|
||||
env: DB=sqlite;TC=syntax;TEST_DAV=0
|
||||
- php: 5.6
|
||||
env: DB=sqlite;TC=syntax;TEST_DAV=0
|
||||
- php: 7.0
|
||||
env: DB=sqlite;TC=syntax;TEST_DAV=0
|
||||
- php: 5.4
|
||||
- php: 5.6
|
||||
env: DB=sqlite;TC=app:check-code;TEST_DAV=0
|
||||
|
||||
fast_finish: true
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
// Show warning if a PHP version below 5.4.0 is used, this has to happen here
|
||||
// because base.php will already use 5.4 syntax.
|
||||
if (version_compare(PHP_VERSION, '5.4.0') === -1) {
|
||||
echo 'This version of ownCloud requires at least PHP 5.4.0<br/>';
|
||||
// Show warning if a PHP version below 5.6.0 is used, this has to happen here
|
||||
// because base.php will already use 5.6 syntax.
|
||||
if (version_compare(PHP_VERSION, '5.6.0') === -1) {
|
||||
echo 'This version of Nextcloud requires at least PHP 5.6.0<br/>';
|
||||
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue