Skip to content
Permalink
Browse files

Travis: Get codacy coverage agent from bintray

  • Loading branch information...
skalarproduktraum committed Jun 7, 2019
1 parent 06a8ffe commit 03917d6e10d59af14fdd247796ade504a689e3d5
Showing with 2 additions and 1 deletion.
  1. +2 −1 .travis.yml
@@ -33,7 +33,8 @@ script:
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && mvn -B deploy --settings settings.xml
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mvn -B jacoco:report; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -Ls -o codacy-coverage-reporter "$(curl -Ls https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r '.assets | map({name, browser_download_url} | select(.name | contains("codacy-coverage-reporter-linux"))) | .[0].browser_download_url')"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x codacy-coverage-reporter; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./codacy-coverage-reporter report -l Kotlin -r target/site/jacoco/jacoco.xml; fi
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 03917d6

Please sign in to comment.
You can’t perform that action at this time.