forked from oshi/oshi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.1 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
os: linux
dist: trusty
addons:
hosts:
- oshi
hostname: oshi
cache:
directories:
- $HOME/.m2
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(\.yml$)|(\.yaml$))'
then
echo "Not running CI since only docs were changed."
travis_terminate 0
fi
# Need to install our own arm64 jdk and set JAVA_HOME
- if [ "${TRAVIS_CPU_ARCH}" = "arm64" ]; then
sudo apt-get -m install openjdk-11-jdk maven;
travis_cmd 'export JAVA_HOME="$(realpath -Pm "$(which javac)/../../")"' --echo
export PATH=$JAVA_HOME:$PATH;
fi
# enable to get a stack trace on failed builds
# install:
# - ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -X
script:
- if [ "${TRAVIS_BRANCH}" = "master" ]; then
java -version;
mvn test;
fi
# 4 concurrent builds on travis-ci.com but limit to what's not covered by other CI
# Github Actions handles Windows, macOS, and Linux
# Cirrus CI handles FreeBSD
jobs:
include:
- name: "Linux JDK11 ARM"
if: branch = master
os: linux
arch: arm64