diff --git a/.travis.yml b/.travis.yml index 3f39dd0f..7efb2590 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: xenial +dist: bionic language: java sudo: false jdk: @@ -14,10 +14,13 @@ before_script: - mvn -B --update-snapshots dependency-check:check -Pdependency-check - if [ -n "$TRAVIS_TAG" ]; then mvn versions:set -DnewVersion=${TRAVIS_TAG}; fi script: -- mvn -B clean test jacoco:report verify -Pcoverage -Dorg.slf4j.simpleLogger.defaultLogLevel=debug - | - if [[ "$TRAVIS_BRANCH" =~ ^release/.* ]]; then - mvn -B javadoc:jar; + if [[ -n "$TRAVIS_TAG" ]]; then + mvn clean install jacoco:report verify -Pcoverage,release + elif [[ "$TRAVIS_BRANCH" =~ ^release/.* ]]; then + mvn clean install jacoco:report verify -Pcoverage,release + else + mvn clean test jacoco:report verify -Pcoverage fi after_success: - curl -o ~/codacy-coverage-reporter.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/4.0.3/codacy-coverage-reporter-4.0.3-assembly.jar @@ -27,7 +30,7 @@ cache: - $HOME/.m2 deploy: - provider: script - script: mvn clean deploy -DskipTests -Prelease + script: mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true -Prelease skip_cleanup: true on: repo: cryptomator/cryptofs