diff --git a/.scrutinizer.yml b/.scrutinizer.yml index e69de29..035c192 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -0,0 +1,15 @@ +imports: + - php + +tools: + external_code_coverage: + timeout: 2100 # Timeout in seconds. + # disable copy paste detector and similarity analyzer as they have no real value + # and a huge bunch of false-positives + php_sim: false + php_cpd: false + +build: + environment: + php: + version: 5.5 diff --git a/.travis.yml b/.travis.yml index 61a68ce..2ed23f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ sudo: false language: php php: - - 5.4 - 5.5 - 5.6 - 7.0 @@ -47,3 +46,7 @@ script: notifications: email: - resurtm+travis-ci@gmail.com + +after_script: + - travis_retry wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml diff --git a/codeception.dist.yml b/codeception.dist.yml index bb6f6cd..dc5577b 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -18,3 +18,11 @@ modules: Yii2: configFile: 'tests/_app/config/test.php' cleanup: false +coverage: + enabled: true + whitelist: + include: + - lib/* + exclude: + - lib/User/Migration/* + - lib/User/resources/*