-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
66 lines (61 loc) · 1.63 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
language: java
matrix:
include:
# License, formatter, and FindBugs check
- env: NAME="License, formatter, and FindBugs check"
os: linux
sudo: false
jdk: oraclejdk8
script:
- mvn license:check
- mvn formatter:validate
- mvn findbugs:check
# Coverage report
- env: NAME="Coverage report"
os: linux
sudo: false
jdk: oraclejdk8
script:
- mvn cobertura:cobertura
after_success:
- mvn coveralls:report
# Linux tests (java 8)
- env: NAME="Linux tests (java 8)"
os: linux
sudo: false
jdk: oraclejdk8
script:
- mvn test
# Linux tests (java 9)
- env: NAME="Linux tests (java 9)"
os: linux
sudo: false
jdk: oraclejdk9
script:
- mvn test
# macOS tests are disabled due to instability of travis-ci
# - os: osx
# osx_image: xcode9.2
# script:
# - mvn test
# Docker tests
- env: NAME="Docker tests"
language: none
os: linux
sudo: required
services:
- docker
script:
- docker build . -t semux:latest
- docker run -d -p 5161:5161 semux:latest --password=""
- timeout 10 .travis/docker_test_build.sh
- docker kill $(docker ps -q)
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/Library/Caches/Homebrew
before_install:
- rm ~/.m2/settings.xml # 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