Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e14926a

Browse files
committed
ci: Enable code coverage via CodeClimate
1 parent fcc4960 commit e14926a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

‎.circleci/config.yml‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ jobs:
3333
key: composer-v1-{{ checksum "composer.lock" }}
3434
paths:
3535
- vendor
36-
- run: ./vendor/bin/phpunit --coverage-text
36+
- run:
37+
name: Setup Code Climate test-reporter
38+
command: |
39+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
40+
chmod +x ./cc-test-reporter
41+
- run:
42+
name: Run tests
43+
command: |
44+
sudo docker-php-ext-enable xdebug
45+
./cc-test-reporter before-build
46+
vendor/bin/phpunit --coverage-clover clover.xml
47+
./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
3748
3849
release-dry-run:
3950
docker:
@@ -58,7 +69,7 @@ workflows:
5869
- test-7.1
5970
- test-7.2
6071
- release-dry-run:
61-
context: org-global
72+
context: org-global
6273
- hold:
6374
type: approval
6475
requires:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /