Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
upload coverage to codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jun 2, 2019
1 parent 4a97b09 commit 48be0b5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ coding_style:

build:
environment:
variables:
CC_TEST_REPORTER_ID: da3d1c18a95c20bc1b1a996dfa9cfb7d4de1d9e67acc8d340c25b53c9a528de3
php:
version: 7.1
nodes:
Expand All @@ -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'
file: 'clover.xml'
format: 'clover'
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $?

0 comments on commit 48be0b5

Please sign in to comment.