2013-03-29 09:54:12 +01:00
|
|
|
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
|
|
|
|
|
2015-07-24 04:37:48 +02:00
|
|
|
sudo: false
|
|
|
|
|
2015-09-10 22:40:44 +02:00
|
|
|
language: php
|
|
|
|
|
2013-03-29 09:54:12 +01:00
|
|
|
matrix:
|
2015-09-10 22:40:44 +02:00
|
|
|
include:
|
2016-04-28 08:05:19 +02:00
|
|
|
- php: 5.3
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.1
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.2
|
|
|
|
- php: 5.5
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.3
|
2015-08-13 02:44:39 +02:00
|
|
|
- php: 5.6
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3
|
|
|
|
- php: 5.6
|
2015-08-28 03:21:57 +02:00
|
|
|
env: DB=MYSQL CORE_RELEASE=3.1 SECUREASSETS=1
|
2015-09-10 22:40:44 +02:00
|
|
|
- php: 5.6
|
2016-04-28 08:05:19 +02:00
|
|
|
env: DB=PGSQL CORE_RELEASE=3.3
|
2013-03-29 09:54:12 +01:00
|
|
|
|
|
|
|
before_script:
|
2015-08-13 02:44:39 +02:00
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
2015-08-28 03:21:57 +02: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 02:44:39 +02:00
|
|
|
- cd ~/builds/ss
|
2013-03-29 09:54:12 +01:00
|
|
|
|
2015-09-10 22:40:44 +02:00
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit --coverage-clover coverage.clover userforms/tests
|
2017-01-24 21:35:50 +01:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/
|
|
|
|
- cd ~/build/$TRAVIS_REPO_SLUG
|
2015-09-10 22:40:44 +02:00
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
2015-09-14 02:27:51 +02:00
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|