From ff86e56b71ce1b3a02e0ae524493f9a7083945e8 Mon Sep 17 00:00:00 2001 From: Tautrimas Pajarskas Date: Mon, 29 Dec 2014 18:31:58 +0200 Subject: [PATCH] Add Scrutinizer, upload coverage, add Travis cache --- .scrutinizer.yml | 8 ++++++++ .travis.yml | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..aca034d --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,8 @@ +imports: + - php +tools: + external_code_coverage: + timeout: 1200 +filter: + excluded_paths: + - Tests/* diff --git a/.travis.yml b/.travis.yml index f6e3cc3..9fa1031 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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