-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
26 lines (26 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: java
sudo: false
jdk:
- oraclejdk8
notifications:
irc:
channels:
- chat.freenode.net#hawkular
on_success: change
install:
- mvn -version -B
# unshallow is needed by license-maven-plugin
- git fetch origin --unshallow
script:
- mvn -s .travis.maven.settings.xml verify -Psample,itest -Dfailsafe.useFile=false | grep -vF "[INFO] Downloading:" | grep
-vF "[INFO] Downloaded:"; test ${PIPESTATUS[0]} -eq 0
env:
global:
- secure: VMf82bNo+nMpqvs2DB88k5AY5uBzjoz7aU8yPgGUGO4tbGfO3D/QNY2px1MkXTfPGtSxlgkPCccXRUUo7s8yT0vGm2Jr92DpbI/285Vtm8KQiAPJvX7BtIZxVPQGFoNsQ3ZUYnfwguDnasxi0DCm/imDv9hqu96RlzqoVxO8Upg=
- secure: ZlO/Opz9CENlpogb1so3YU4tcbsAkpo6ZneBQKrVAg6azjjs+5j7tIAqek40F5RPj2MK+BW+RSbLKGMIuaUEoGWYNCkORAC3wRvUEz4Lf6ZKR19DmjrPVqP8LG3N7hO+3RtuNG24h4d+lfBGg2y/sDeqHYIV8JJ5QyK6BtQNb+M=
after_success:
- PROJECT_VERSION=`mvn --batch-mode org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
- if [[ "$PROJECT_VERSION" =~ .*SNAPSHOT ]] && [[ "${TRAVIS_BRANCH}" = "master" ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]];
then
mvn -s .travis.maven.settings.xml clean deploy -DskipTests -Pdistribution ;
fi