silverstripe-userforms/.travis.yml

31 lines
1.1 KiB
YAML
Raw Normal View History

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:
- php: 5.3
2016-12-15 22:15:36 +01:00
env: DB=MYSQL CORE_RELEASE=3.4
- php: 5.4
2016-12-15 22:15:36 +01:00
env: DB=MYSQL CORE_RELEASE=3.5
2015-08-13 02:44:39 +02:00
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
2016-12-15 22:15:36 +01:00
env: DB=MYSQL CORE_RELEASE=3.5 SECUREASSETS=1
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
- "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
- wget https://scrutinizer-ci.com/ocular.phar
2016-12-15 22:15:36 +01:00
- cd ./userforms
2015-09-14 02:27:51 +02:00
- git remote rm origin
- git remote add origin git@github.com:silverstripe/silverstripe-userforms.git
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover