Rewrite travis & add scrutinizer

This commit is contained in:
Jeremy 2015-03-28 00:23:25 +01:00
parent 6141388969
commit 3e6b7ea0e9
2 changed files with 54 additions and 14 deletions

22
.scrutinizer.yml Normal file
View file

@ -0,0 +1,22 @@
filter:
paths:
- src/*
excluded_paths:
- 'vendor/*'
- 'app/*'
- 'web/*'
- 'src/Wallabag/*Bundle/Tests/*'
- '*Test.php'
tools:
php_cs_fixer: true
php_analyzer: true
php_mess_detector: true
php_changetracking: true
php_code_sniffer: true
php_pdepend: true
sensiolabs_security_checker: true
external_code_coverage: true
php_code_coverage: true
php_sim: false
php_cpd: false

View file

@ -1,27 +1,45 @@
language: php
# use docker-container infra
# faster builds on docker-container setup
sudo: false
# cache vendor dirs
cache:
directories:
- vendor
- $HOME/.composer/cache
php:
- 5.4
- 5.5
- 5.6
- hhvm
- nightly
- 5.4
- 5.5
- 5.6
- hhvm
- nightly
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
allow_failures:
- php: hhvm
- php: nightly
branches:
only:
- v2
only:
- v2
install:
- composer self-update
# build coverage only on one build, to speed up results feedbacks
before_script:
- composer self-update
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; fi;
script:
- ant prepare
- phpunit --coverage-text
- ant prepare
- phpunit $PHPUNIT_FLAGS
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi