Skip to content

Commit

Permalink
updated CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Sep 27, 2019
1 parent a3fd45d commit ca063e9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic
language: java
sudo: false
jdk:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ca063e9

Please sign in to comment.