-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
35 lines (35 loc) · 1.35 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
34
35
language: java
jdk:
- oraclejdk8
notifications:
irc:
channels:
- chat.freenode.net#hawkular
on_success: change
# whitelist
branches:
only:
- master
env:
global:
- HAWKULAR_ENDPOINT=http://localhost:8080
- secure: P1sgq46dmYBOb/pvHGO2ACO/Zum5wbXebLJ6kLV+Ss97y0B+KWKGCrc9Hh9TG28mdzPMCHbJOFynfneet8irpEIL97PbSb2HFeKhiHJTeB4d0y60uaa6Y6Lmo+YCniubvw+FaeoXBYjImg2nDXslvKDTu6I0JKQ1pk8Fkqx45Sw=
- secure: BTZcYkskQR5SleCK8enISTeSK/xR8rzvht/jEsYG5Ar7T/xa2USY2jaiIWzmd1t4hWkrSoubRCHuKt4oGi/fll75r9kPDLql9R1zaMmhEiKDsaEHZhuL6Ds8SVIgwdcpXN4IwiFfVOOxSTdpWcsNNbiQvCgtEIh0oqSk+jJArzI=
services:
- docker
before_install:
- docker-compose up -d && ./.travis/wait_for_services.rb
install:
- bash .travis.install.maven.sh "3.3.9" "${HOME}/mvn-home"
- export M2_HOME=${HOME}/mvn-home
- export PATH=${HOME}/mvn-home/bin:${PATH}
- mvn -version -B
script:
- mvn -s .travis.maven.settings.xml verify -Dwildfly.logging.console.level=DEBUG -B -Pci
| grep -vF "[INFO] Downloading:" | grep -vF "[INFO] Downloaded:"; test ${PIPESTATUS[0]} -eq 0
after_success:
- PROJECT_VERSION=`mvn 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 ;
fi