Skip to content

Commit 5b117f2

Browse files
authored
Merge pull request #91 from bavix/codeclimate
Update .travis.yml
2 parents 9f5cb6a + ca5a671 commit 5b117f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ matrix:
1212
- php: 'nightly'
1313

1414
before_script:
15+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16+
- chmod +x ./cc-test-reporter
17+
- ./cc-test-reporter before-build
1518
- composer install
1619

1720
script:
18-
- ./vendor/bin/infection --min-msi=60 -j$(nproc)
21+
- ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/phpunit.junit.xml
22+
- ./vendor/bin/infection --coverage=build --min-msi=60 -j$(nproc)
23+
24+
after_script:
25+
- cp ./build/logs/clover.xml clover.xml
26+
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT

0 commit comments

Comments
 (0)