2014-02-19 03:23:28 +01:00
|
|
|
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
|
|
|
|
|
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=MYSQL CORE_RELEASE=3.1
|
|
|
|
- DB=PGSQL CORE_RELEASE=3.1
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.1
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/cms
|
|
|
|
- cd ~/builds/ss
|
|
|
|
|
|
|
|
script:
|
2014-03-07 03:21:50 +01:00
|
|
|
- phpunit --coverage-clover=coverage.clover
|
2014-03-07 03:05:01 +01:00
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover --repository=g/silverstripe-labs/silverstripe-contentreview --revision=`cd contentreview && git rev-parse HEAD`
|