diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f0122b7..4787d33 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -19,6 +19,8 @@ coding_style: build: environment: + variables: + CC_TEST_REPORTER_ID: da3d1c18a95c20bc1b1a996dfa9cfb7d4de1d9e67acc8d340c25b53c9a528de3 php: version: 7.1 nodes: @@ -36,8 +38,12 @@ build: - vendor/ tests: override: + - 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 - - command: 'vendor/bin/phpunit --coverage-clover=cover-php-file' + command: 'vendor/bin/phpunit --coverage-clover clover.xml' coverage: - file: 'cover-php-file' - format: 'clover' \ No newline at end of file + file: 'clover.xml' + format: 'clover' + - ./cc-test-reporter after-build --coverage-input-type clover --exit-code $? \ No newline at end of file