diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 000000000..c612d4eaa --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,6 @@ +exclude_patterns: +- "config/" +- "database/" +- "docs/" +- "resources/" +- "tests/" diff --git a/.travis.yml b/.travis.yml index 15ab4e44a..d81bd3a40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,15 @@ matrix: - php: 'nightly' before_script: + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter + - ./cc-test-reporter before-build - composer install script: - - ./vendor/bin/infection --min-msi=60 -j$(nproc) + - ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/phpunit.junit.xml + - ./vendor/bin/infection --coverage=build --min-msi=60 -j$(nproc) + +after_script: + - cp ./build/logs/clover.xml clover.xml + - ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT