Skip to content

Commit

Permalink
ci: Enable code coverage via CodeClimate
Browse files Browse the repository at this point in the history
  • Loading branch information
estahn committed Jul 20, 2018
1 parent fcc4960 commit e14926a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,18 @@ jobs:
key: composer-v1-{{ checksum "composer.lock" }}
paths:
- vendor
- run: ./vendor/bin/phpunit --coverage-text
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run tests
command: |
sudo docker-php-ext-enable xdebug
./cc-test-reporter before-build
vendor/bin/phpunit --coverage-clover clover.xml
./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
release-dry-run:
docker:
Expand All @@ -58,7 +69,7 @@ workflows:
- test-7.1
- test-7.2
- release-dry-run:
context: org-global
context: org-global
- hold:
type: approval
requires:
Expand Down

0 comments on commit e14926a

Please sign in to comment.