updated codacy code coverage reporter to latest

This commit is contained in:
Jeremy Long
2017-06-24 07:07:50 -04:00
parent ac830d5784
commit 2cb017cf83

View File

@@ -20,7 +20,8 @@ cache:
- "$HOME/.sonar/cache" - "$HOME/.sonar/cache"
before_install: 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: matrix:
include: 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 - 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: 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" == "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" == "JDK7" ]; then ./coverity_scan.sh; fi; - if [ "$JDK" == "JDK8" ]; then ./coverity_scan.sh; fi;
deploy: deploy:
- provider: script - provider: script