Skip to content

Commit a2480f7

Browse files
committed
code coverage report
1 parent 6f65835 commit a2480f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ before_script:
88
- composer self-update
99
- composer require codeclimate/php-test-reporter --dev
1010
- composer install --prefer-dist --no-interaction
11-
11+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12+
- chmod +x ./cc-test-reporter
13+
- ./cc-test-reporter before-build
1214

1315
after_script:
1416
- vendor/bin/test-reporter
1517

1618
after_script:
1719
- vendor/bin/test-reporter --stdout > codeclimate.json
1820
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)' https://codeclimate.com/test_reports"
21+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 commit comments

Comments
 (0)