From 48be0b5e45813db26f144195ddc674500f967964 Mon Sep 17 00:00:00 2001 From: Giancarlos Salas Date: Sun, 2 Jun 2019 18:20:17 -0500 Subject: [PATCH] upload coverage to codeclimate --- .scrutinizer.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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