Skip to content

Commit

Permalink
Added Scrutinizer support
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Aug 13, 2015
1 parent 5c0f172 commit 58391d4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
12 changes: 12 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,12 @@
inherit: true

tools:
external_code_coverage: true

checks:
php:
code_rating: true
duplication: true

filter:
paths: [code/*, tests/*]
34 changes: 25 additions & 9 deletions .travis.yml
Expand Up @@ -4,23 +4,39 @@ language: php

sudo: false

php:
- 5.4
php:
- 5.3
- 5.4
- 5.5
- 5.6

env:
- DB=MYSQL CORE_RELEASE=3
- DB=MYSQL CORE_RELEASE=3.1
- 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
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- 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

2 comments on commit 58391d4

@assertchris
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wat

@tractorcow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.