From 2cb017cf830ca5f3067b1dd6943c77ee6e97248a Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 24 Jun 2017 07:07:50 -0400 Subject: [PATCH] updated codacy code coverage reporter to latest --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b6263cc6..21dc576f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,8 @@ cache: - "$HOME/.sonar/cache" before_install: - - wget -O ~/codacy-coverage-reporter-assembly.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/1.0.13/codacy-coverage-reporter-1.0.13-assembly.jar + - sudo apt-get install jq + - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) matrix: include: @@ -36,8 +37,8 @@ matrix: - if [ ! -z "$TRAVIS_TAG" ]; then travis_wait 20 mvn install sonar:sonar -DreleaseTesting; else travis_wait 15 mvn install sonar:sonar -DreleaseTesting; fi after_success: - - if [ "$JDK" == "JDK7" ]; then java -cp ~/codacy-coverage-reporter-assembly.jar com.codacy.CodacyCoverageReporter -l Java -r build-reporting/target/coverage-reports/jacoco.xml; fi; - - if [ "$JDK" == "JDK7" ]; then ./coverity_scan.sh; fi; + - if [ "$JDK" == "JDK8" ]; then java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build-reporting/target/coverage-reports/jacoco.xml; fi; + - if [ "$JDK" == "JDK8" ]; then ./coverity_scan.sh; fi; deploy: - provider: script