Merge pull request #2529 from creative-commoners/pulls/3.7/php-7.4-builds

Update Travis config to include PHP 7.4 build (3.x)
This commit is contained in:
Daniel Hensby 2020-04-05 21:23:51 +01:00 committed by GitHub
commit a2b9a966d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
language: php language: php
dist: precise dist: trusty
sudo: false sudo: false
@ -18,8 +18,6 @@ env:
matrix: matrix:
include: include:
- php: 5.3
env: DB=MYSQL
- php: 5.4 - php: 5.4
env: DB=PGSQL env: DB=PGSQL
- php: 5.5 - php: 5.5
@ -28,12 +26,18 @@ matrix:
env: DB=MYSQL PDO=1 env: DB=MYSQL PDO=1
- php: 5.6 - php: 5.6
env: DB=MYSQL BEHAT_TEST=1 env: DB=MYSQL BEHAT_TEST=1
- php: 7.4
env: DB=MYSQL
dist: xenial
services:
- mysql
before_script: before_script:
- composer self-update || true - composer self-update || true
- phpenv rehash - phpenv rehash
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - echo 'memory_limit = 3072M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support - git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
- "if [ \"$BEHAT_TEST\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi" - "if [ \"$BEHAT_TEST\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi"
- "if [ \"$BEHAT_TEST\" = \"1\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/behat-extension; fi" - "if [ \"$BEHAT_TEST\" = \"1\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/behat-extension; fi"