mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
FIX: Better travis matrix
- Test PHP 7.2 and 7.3 - Test against all 4.x minor releases
This commit is contained in:
parent
e919bdffd9
commit
1589089f5b
38
.travis.yml
38
.travis.yml
@ -6,33 +6,51 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
|
||||||
- 5.6
|
|
||||||
- 7.0
|
|
||||||
- 7.1
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DB=SQLITE
|
- DB=SQLITE
|
||||||
- PDO=1
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
|
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: PDO=0 PHPCS_TEST=1
|
env:
|
||||||
|
- CORE_VERSION=1.0.x-dev
|
||||||
|
- PDO=0
|
||||||
|
|
||||||
|
- php: 7.0
|
||||||
|
env:
|
||||||
|
- CORE_VERSION=1.1.x-dev
|
||||||
|
- PDO=1
|
||||||
|
|
||||||
|
- php: 7.1
|
||||||
|
env:
|
||||||
|
- CORE_VERSION=4.2.x-dev
|
||||||
|
- PDO=0
|
||||||
|
|
||||||
|
- php: 7.2
|
||||||
|
env:
|
||||||
|
- CORE_VERSION=4.3.x-dev
|
||||||
|
- PDO=0
|
||||||
|
|
||||||
|
- php: 7.3
|
||||||
|
env:
|
||||||
|
- CORE_VERSION=4.x-dev
|
||||||
|
- PDO=1
|
||||||
|
- PHPCS_TEST=1
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# Init PHP
|
# Init PHP
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini || true
|
||||||
- export PATH=~/.composer/vendor/bin:$PATH
|
- export PATH=~/.composer/vendor/bin:$PATH
|
||||||
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||||
|
|
||||||
# Install composer dependencies
|
# Install composer dependencies
|
||||||
- composer validate
|
- composer validate
|
||||||
- composer require --no-update silverstripe/recipe-cms:1.0.x-dev
|
- composer require --no-update silverstripe/recipe-cms:$CORE_VERSION
|
||||||
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
|
- composer install --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
|
||||||
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user