Skip to content

Commit c5c1f03

Browse files
committed
See if I can fix code coverage report
1 parent abaa993 commit c5c1f03

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.travis.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
env:
2+
global:
3+
- CC_TEST_REPORTER_ID=731b1224e90b7ad7304e86768a8ed7b98b63d9e30bdc37b6295097c7bb5bedfd
4+
15
language: php
26

37
php:
@@ -6,7 +10,14 @@ php:
610
- 7.1
711
- 7.2
812

13+
before_script:
14+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15+
- chmod +x ./cc-test-reporter
16+
- if [ $(phpenv version-name) = "7.2" ]; then ./cc-test-reporter before-build; fi
17+
918
script:
1019
- composer install
1120
- php vendor/bin/phpunit -c ./tests/phpunit.xml --coverage-text --coverage-clover build/logs/clover.xml tests/
12-
- CODECLIMATE_REPO_TOKEN=731b1224e90b7ad7304e86768a8ed7b98b63d9e30bdc37b6295097c7bb5bedfd ./vendor/bin/test-reporter
21+
22+
after_script:
23+
- if [ $(phpenv version-name) = "7.2" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

0 commit comments

Comments
 (0)