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