-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
64 lines (56 loc) · 1.97 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
language: java
env:
global:
- JABBA_HOME=$HOME/.jabba
# default JDK which will be referenced in the after_success section
# if you wonder: openj9 is not hotspot, but still a openjdk type.
# vendor is adoptopenjdk.net, they also have a openjdk-hotspot vm.
# openj9 has a smaller footprint, faster startup and was originally developed by IBM as J9.
# It now belongs to the eclipse foundation. OpenJ9 has great debugging options.
cache:
directories:
- "$HOME/.m2"
- "$HOME/.jabba"
jobs:
include:
- os: linux
# xenial needed for openssl with pbkdf2
dist: xenial
env:
- TRAVIS_JDK=$DEFAULT_JDK
- os: linux
env:
- os: linux
env:
- os: linux
env:
- os: linux
env:
- os: linux
env:
- os: linux
env:
before_cache:
- rm -rf "$HOME/.m2/repository/io/github/alttpj"
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.0/install.sh | bash && . $JABBA_HOME/jabba.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.0/install.sh | bash && . $JABBA_HOME/jabba.sh; fi
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then $JABBA_HOME/bin/jabba install $TRAVIS_JDK; jabba use $TRAVIS_JDK; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then $JABBA_HOME/bin/jabba install $TRAVIS_JDK; jabba use $TRAVIS_JDK; fi
- java -version
script:
- ./mvnw --batch-mode -Pdocs,run-its clean verify
after_success:
# do a coverage analyses for each PR or branch, but only once for each build matrix.
- |
if [ "$TRAVIS_JDK" == "$DEFAULT_JDK" ]; then
bash <(curl -s https://codecov.io/bash)
fi