2017-06-15 11:45:07 +12:00
|
|
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
2013-03-29 09:54:12 +01:00
|
|
|
|
2015-07-24 14:37:48 +12:00
|
|
|
sudo: false
|
|
|
|
|
2015-09-11 08:40:44 +12:00
|
|
|
language: php
|
|
|
|
|
2013-03-29 09:54:12 +01:00
|
|
|
matrix:
|
2015-09-11 08:40:44 +12:00
|
|
|
include:
|
2016-04-28 18:05:19 +12:00
|
|
|
- php: 5.3
|
2016-12-16 10:15:36 +13:00
|
|
|
env: DB=MYSQL CORE_RELEASE=3.4
|
2016-04-28 18:05:19 +12:00
|
|
|
- php: 5.4
|
2016-12-16 10:15:36 +13:00
|
|
|
env: DB=MYSQL CORE_RELEASE=3.5
|
2015-08-13 12:44:39 +12:00
|
|
|
- php: 5.6
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3
|
|
|
|
- php: 5.6
|
2016-12-16 10:15:36 +13:00
|
|
|
env: DB=MYSQL CORE_RELEASE=3.5 SECUREASSETS=1
|
2017-06-15 11:45:07 +12:00
|
|
|
- php: 7.1
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.6
|
2013-03-29 09:54:12 +01:00
|
|
|
|
|
|
|
before_script:
|
2017-06-15 11:45:07 +12:00
|
|
|
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
|
2015-08-28 13:21:57 +12:00
|
|
|
- "if [ \"$SECUREASSETS\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi"
|
|
|
|
- "if [ \"$SECUREASSETS\" = \"1\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/secureassets; fi"
|
2015-08-13 12:44:39 +12:00
|
|
|
- cd ~/builds/ss
|
2013-03-29 09:54:12 +01:00
|
|
|
|
2015-09-11 08:40:44 +12:00
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit --coverage-clover coverage.clover userforms/tests
|
2017-01-24 20:35:50 +00:00
|
|
|
|
2017-02-03 15:05:03 +00:00
|
|
|
after_success:
|
2017-01-24 20:35:50 +00:00
|
|
|
- mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/
|
|
|
|
- cd ~/build/$TRAVIS_REPO_SLUG
|
2015-09-11 08:40:44 +12:00
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
2015-09-14 12:27:51 +12:00
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|