NEW: Add test for PHP 7.3 support

Also added a SQLite 7.1 test as it’s very fast now, reordered the
tests with some commentary, and pushed the PGSQL test to 5.4 as they
are both “edge-cases”

Note that MySQL test speed is very problematic and has been addressed
in https://github.com/silverstripe/silverstripe-framework/pull/8435
This commit is contained in:
Sam Minnee 2018-09-25 16:25:30 +12:00
parent d6117630bd
commit 518b6514cd

View File

@ -8,22 +8,50 @@ addons:
apt:
packages:
- tidy
firefox: "31.0"
matrix:
include:
# Framework tests
- php: 5.4
env: DB=MYSQL PDO=1
env: DB=PGSQL
services:
- postgresql
- php: 7.0
env: DB=SQLITE
- php: 7.1
env: DB=SQLITE
- php: 7.2
env: DB=PGSQL
- php: 5.6
env: DB=MYSQL BEHAT_TEST=1
env: DB=MYSQL PDO=1
services:
- mysql
- php: 7.3.0RC1
env: DB=SQLITE
sudo: required
dist: xenial
addons:
apt:
packages:
- libzip4
# CMS test
- php: 5.5
env: DB=MYSQL CMS_TEST=1
services:
- mysql
# Behat tests
- php: 5.6
env: DB=MYSQL BEHAT_TEST=1
addons:
firefox: "31.0"
- php: 7.1
env: DB=MYSQL BEHAT_TEST=1 CMS_TEST=1
addons:
firefox: "31.0"
before_script:
# Fix bug in Selenium with duplicate localhost definitions: https://github.com/travis-ci/travis-ci/issues/3054
@ -34,7 +62,7 @@ before_script:
- if [ $(phpenv version-name) = "5.3" ]; then printf "\n" | travis_retry pecl install imagick-3.3.0; fi
- composer self-update || true
- phpenv rehash
- phpenv config-rm xdebug.ini
- phpenv config-rm xdebug.ini || true
- echo 'memory_limit = 2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- "if [ \"$BEHAT_TEST\" = \"\" ] && [ \"$CMS_TEST\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi"