-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
31 lines (28 loc) · 1.17 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
27
28
29
30
31
language: java
# Enable container-based infrastructure
# see http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
# manage the caches here https://travis-ci.org/hawkular/hawkular/caches
cache:
directories:
- $HOME/.m2/repository
- $HOME/.m2/wrapper
jdk:
- oraclejdk8
install:
# unshallow is needed by license-maven-plugin
- git fetch origin --unshallow
script:
- ./mvnw clean install
notifications:
email: false
env:
global:
- secure: PhOUusoqbh4B/wOzdoWzk2gxEvc6M6re/CHpoBsTQI8CAdPJ/OGtUTbk2KSFfolrUZXlcdMqhE0mGtzv987vtNCI4RvjKmp2YKtumMlynTxguthj16FQbH7G0TUl84QFO0c5kopOBQoKyLOO4Jo1PFe/6KPqbhu0xwFnj4Q2/80=
- secure: gEUl4vAf8Pdom2OUJuHeVsSLJxebzLpBdWg/RV3EJe90arZEg/H5On3g/EysGS8Wx8cNCpulBH5kzF6O4irzg3GxEHrsfzCng5rH7lRJYRerNIocPguOyfa2piOrZuIIgpbmx9EkF67vRdATNVEzFSivFajfY5Jayq/BvU5Vd7E=
after_success:
- PROJECT_VERSION=`./mvnw --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
./mvnw -s .travis.maven.settings.xml deploy -DskipTests ;
fi