Skip to content

Commit

Permalink
Add Scrutinizer, upload coverage, add Travis cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tautrimas committed Dec 29, 2014
1 parent 2bea0a9 commit ff86e56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
imports:
- php
tools:
external_code_coverage:
timeout: 1200
filter:
excluded_paths:
- Tests/*
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ php:
services:
- elasticsearch
before_script:
- composer self-update
- composer update --prefer-dist
script:
- vendor/bin/phpunit --coverage-text
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- vendor/bin/phpcs -p --standard=$TRAVIS_BUILD_DIR/vendor/ongr/ongr-strict-standard/ONGR --ignore=vendor/,Tests/app/,Resources/public/ ./
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
cache:
directories:
- vendor/
- $HOME/.composer/cache

0 comments on commit ff86e56

Please sign in to comment.