-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
33 lines (29 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
32
33
language: java
jdk:
- oraclejdk8
# Enable container-based infrastructure + caching
# see http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
# manage the caches here https://travis-ci.org/hawkular/hawkular-datamining/caches
cache:
directories:
- $HOME/.m2
install:
- mvn -s .travis.maven.settings.xml -version -B
# unshallow is needed by license-maven-plugin
- git fetch origin --unshallow
- df -h
- du -sh $HOME/.m2/repository
script:
- mvn -fae -s .travis.maven.settings.xml clean install -Pitest
env:
global:
# for pushing the swagger adoc documentation to the hawkular.github.io
- secure: "caSbINzkVaFh3kmNeLaUtaw7qhes+SHG7fvyHHQsb34bRqvM7RPiVWL1aY11UsKiee1dkvksd+98fRS1Wy3RByqARpeUCf2mV2xRhTRj1sBGgV+Dmg3pza5GKRao2XqaZP6KM239UdY+4j9LRVH3Bo6xEyvnp/sUHx030F4DjuE="
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 deploy -DskipTests ;
./.travis.swagger.sh ;
fi