Merge pull request #26 from assertchris/add-scrutinizer-support

Added Scrutinizer support
This commit is contained in:
Damian Mooyman 2015-08-14 09:19:03 +12:00
commit cbfdb1f0b1
2 changed files with 37 additions and 9 deletions

12
.scrutinizer.yml Normal file
View File

@ -0,0 +1,12 @@
inherit: true
tools:
external_code_coverage: true
checks:
php:
code_rating: true
duplication: true
filter:
paths: [code/*, tests/*]

View File

@ -5,7 +5,10 @@ language: php
sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- DB=MYSQL CORE_RELEASE=3
@ -13,9 +16,19 @@ env:
- DB=PGSQL CORE_RELEASE=3.1
matrix:
include:
- php: 5.3
env: DB=MYSQL CORE_RELEASE=3.1
exclude:
- php: 5.4
env: DB=MYSQL CORE_RELEASE=3
- php: 5.5
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.4
env: DB=PGSQL CORE_RELEASE=3.1
- php: 5.5
env: DB=PGSQL CORE_RELEASE=3.1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.1
before_script:
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
@ -23,4 +36,7 @@ before_script:
- cd ~/builds/ss
script:
- phpunit userforms/tests/
- phpunit --coverage-clover userforms/coverage.clover userforms/tests
- cd userforms
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover