Skip to content

Commit

Permalink
Adding scrutinizer and travis config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Aug 4, 2016
1 parent 62fbd87 commit 127f6d8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
checks:
php: true
filter:
excluded_paths: [vendor/*, tests/*]
coding_style:
php: { }
tools:
external_code_coverage: true
php_code_coverage: true
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: php

php:
- 5.6
- 7.0

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
- phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- then php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 comments on commit 127f6d8

Please sign in to comment.