Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
#1 Migrate to format-coverage for codeclimate coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Nov 13, 2018
1 parent 49206e1 commit b0d36af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jdk:
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

after_script:
- cp ./build/reports/jacoco/test/report.xml ./jacoco.xml
- ./cc-test-reporter after-build -t jacoco --exit-code $TRAVIS_TEST_RESULT
- JACOCO_SOURCE_PATH="src/main/scala src/main/java" ./cc-test-reporter \
format-coverage build/reports/jacoco/test/jacocoTestReport.xml \
--input-type jacoco
- ./cc-test-reporter upload-coverage

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ apply plugin: 'java'
jacocoTestReport {
reports {
xml.enabled = true
xml.setDestination(file("${buildDir}/reports/jacoco/test/report.xml"))
}
}

Expand Down

0 comments on commit b0d36af

Please sign in to comment.