forked from semuxproject/semux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.39 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
language: java
matrix:
include:
# License, formatter, and FindBugs check
- env: NAME="License, formatter, and FindBugs check"
os: linux
sudo: false
jdk: openjdk8
script:
- mvn license:check
- mvn formatter:validate
- mvn findbugs:check
# Coverage report
- env: NAME="Coverage report"
os: linux
sudo: false
jdk: openjdk8
script:
- mvn cobertura:cobertura
after_success:
- mvn coveralls:report
# Linux tests (Java 8 LTS)
- env: NAME="Linux tests (Java 8)"
os: linux
sudo: false
jdk: openjdk8
script:
- mvn test
# Linux tests (Java 11 LTS)
- env: NAME="Linux tests (Java 11)"
os: linux
sudo: false
script:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- source ./install-jdk.sh -F 11 -L GPL
- mvn test
# macOS tests (Java 8 LTS)
- env: NAME="macOS tests"
os: osx
osx_image: xcode9.2
script:
- mvn test
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/Library/Caches/Homebrew
before_install:
- rm ~/.m2/settings.xml || true # remove the default settings.xml in order to use custom repos
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source .travis/linux_start_xvfb.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then .travis/macos_install_jdk8.sh; fi