forked from izpack/izpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (57 loc) · 1.57 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: java
install: true
sudo: false
env:
global:
- JAVA_OPTS="-Djava.awt.headless=false -Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1"
- TRAVIS_JDK_1_6=
- JABBA_HOME=/home/travis/.jabba
before_install:
- cp ./.travis.settings.xml $HOME/.m2/settings.xml
- if [ $TRAVIS_JDK_1_6 == "[email protected]" ]; then
echo "Download Jabba";
curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.10.1/install.sh | bash && . ~/.jabba/jabba.sh;
$JABBA_HOME/bin/jabba install $TRAVIS_JDK_1_6;
export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK_1_6";
bash .travis.install-maven-archived.sh "${MVN_VERSION}" "${HOME}/mvn-home";
else
bash .travis.install-maven.sh "${MVN_VERSION}" "${HOME}/mvn-home";
fi
- export M2_HOME=${HOME}/mvn-home;
install:
- export PATH="$M2_HOME/bin:$JAVA_HOME/bin:$PATH"
- mvn -version
addons:
apt:
packages:
- fluxbox
cache:
directories:
- $HOME/.m2/repository
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- fluxbox &> ~/fluxbox.log &
- sleep 3
matrix:
include:
- addons:
apt:
packages:
- fluxbox
#- openjdk-6-jdk
#jdk: openjdk6
env: MVN_VERSION="3.2.5" TRAVIS_JDK_1_6="[email protected]"
- jdk: openjdk7
env: MVN_VERSION="3.3.9"
- jdk: oraclejdk8
env: MVN_VERSION="3.3.9"
# FIXME:
# Travis build fail on JDK 9 due to missing JAXB module in classpath
# - jdk: oraclejdk9
# env: MVN_VERSION="3.3.9"
script:
- mvn -U clean verify
- mvn verify -Pwith-gui-tests
notifications:
email: false