-
Notifications
You must be signed in to change notification settings - Fork 111
/
.travis.yml
46 lines (42 loc) · 1.61 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
language: java
# use latest dist by default, but certain setups need to fall back to xenial or even trusty (see also matrix):
# - oraclejdk8 needs trusty, see https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038/9
# note: as of 08.09.2019, this JDK provided by Travis is rather old (just minor version 151 instead of 222)
# and installing a newer one manually seems to require too much effort.
# - openjdk8 fails on bionic (similar to oraclejdk8 on >trusty), but on xenial the minor version is way more recent
dist: bionic
matrix:
include:
- name: "OpenJDK 11"
jdk: openjdk11
env: OPENJDK_VERSION=11
- name: "OpenJDK 8"
jdk: openjdk8
env: OPENJDK_VERSION=8
dist: xenial
- name: "OracleJDK 8"
jdk: oraclejdk8
dist: trusty
- name: "OpenJDK 12"
jdk: openjdk12
env: OPENJDK_VERSION=12
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/754eed67f5ed5a0c5de5
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
after_success:
- coveralls
install:
- if [ -n "${OPENJDK_VERSION}" ]; then
JAVA_HOME_CANDIATE=/usr/lib/jvm/java-${OPENJDK_VERSION}-openjdk-amd64;
if [ "${JAVA_HOME}" != "${JAVA_HOME_CANDIATE}" ] && [ -d "${JAVA_HOME_CANDIATE}" ]; then
echo "Switching to a (possibly) more recent JDK ${OPENJDK_VERSION} minor version ...";
export JAVA_HOME=${JAVA_HOME_CANDIATE};
export PATH="$JAVA_HOME/bin:$PATH";
fi
fi
- mvn -version
script: mvn package -Dgpg.skip=true