forked from acegi/xml-format-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
21 lines (21 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cache:
directories:
- $HOME/.m2
language: java
jdk:
- openjdk7
- openjdk8
- oraclejdk8
- oraclejdk9
email:
- ben.alex@acegi.com.au
install:
- ./mvnw -B -Pdeploy --settings .travis-settings.xml -DexcludeGroupIds=com.github.github -V dependency:go-offline
script:
- if [ "$TRAVIS_JDK_VERSION" != "oraclejdk8" ]; then ./mvnw -B -Pdeploy --settings .travis-settings.xml -Dgpg.skip=true test; fi
- if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then ./mvnw -B -Pdeploy --settings .travis-settings.xml -Dgpg.skip=true verify; fi
after_success:
- if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then bash <(curl -s https://codecov.io/bash); fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then echo $GPG_KEY | base64 --decode | gpg --batch --fast-import -; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then ./mvnw -B -Pdeploy --settings .travis-settings.xml deploy; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then ./mvnw -B -Pdeploy --settings .travis-settings.xml site-deploy; fi