2017-05-01 06:44:51 +02:00
|
|
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
2013-03-29 10:07:05 +01:00
|
|
|
|
2016-07-15 17:05:34 +02:00
|
|
|
sudo: false
|
|
|
|
|
2016-03-18 12:51:28 +01:00
|
|
|
language: php
|
2013-03-11 01:44:38 +01:00
|
|
|
|
2016-07-15 17:05:34 +02:00
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
- 5.4
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2015-07-20 17:08:28 +02:00
|
|
|
|
2013-03-11 01:44:38 +01:00
|
|
|
env:
|
2017-05-08 06:24:25 +02:00
|
|
|
- DB=MYSQL CORE_RELEASE=3.5
|
2013-03-11 01:44:38 +01:00
|
|
|
|
|
|
|
matrix:
|
2013-03-29 10:07:05 +01:00
|
|
|
include:
|
2017-05-01 06:44:51 +02:00
|
|
|
- php: 7.1
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3 COVERAGE="--coverage-clover=coverage.xml"
|
2013-03-11 01:44:38 +01:00
|
|
|
|
|
|
|
before_script:
|
2016-07-15 17:05:34 +02:00
|
|
|
- composer self-update || true
|
2017-05-01 06:44:51 +02:00
|
|
|
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/build/ss
|
|
|
|
- cd ~/build/ss
|
2016-07-15 17:05:34 +02:00
|
|
|
- composer install
|
2013-03-11 01:44:38 +01:00
|
|
|
|
2016-03-18 12:51:28 +01:00
|
|
|
script:
|
2017-05-01 06:44:51 +02:00
|
|
|
- vendor/bin/phpunit "$COVERAGE" dms/tests
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- >
|
|
|
|
test "$COVERAGE" != ""
|
|
|
|
&& mv coverage.xml ~/build/$TRAVIS_REPO_SLUG
|
|
|
|
&& cd ~/build/$TRAVIS_REPO_SLUG
|
|
|
|
&& bash <(curl -s https://codecov.io/bash)
|