2016-01-07 07:59:10 +01:00
|
|
|
language: php
|
2013-03-29 09:33:51 +01:00
|
|
|
|
2019-07-24 12:26:14 +02:00
|
|
|
dist: trusty
|
2015-07-20 17:02:57 +02:00
|
|
|
|
2016-01-07 07:59:10 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tidy
|
2015-11-19 02:18:53 +01:00
|
|
|
|
2013-03-29 09:33:51 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-07-24 12:26:14 +02:00
|
|
|
- php: '5.6'
|
2017-06-13 01:13:48 +02:00
|
|
|
env: DB=MYSQL CORE_RELEASE=3.6
|
2019-07-24 12:26:14 +02:00
|
|
|
- php: '7.0'
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.7
|
|
|
|
- php: '7.1'
|
|
|
|
env: DB=PGSQL CORE_RELEASE=3.7
|
|
|
|
- php: '7.2'
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.7
|
|
|
|
- php: '7.3'
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.7
|
2013-03-29 09:33:51 +01:00
|
|
|
|
|
|
|
before_script:
|
2016-01-07 07:59:10 +01:00
|
|
|
- phpenv rehash
|
2015-11-19 02:18:53 +01:00
|
|
|
- composer self-update || true
|
2019-07-24 12:26:14 +02:00
|
|
|
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
|
2016-01-07 07:59:10 +01:00
|
|
|
# Install suggested modules in order to maximize test coverage
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require "ezyang/htmlpurifier:4.*,silverstripe/cms:~3.1"
|
2015-11-19 02:18:53 +01:00
|
|
|
- cd ~/builds/ss
|
2013-03-29 09:33:51 +01:00
|
|
|
|
2015-11-19 02:18:53 +01:00
|
|
|
script:
|
2019-07-24 12:26:14 +02:00
|
|
|
- vendor/bin/phpunit comments/tests
|