forked from sanger-pathogens/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 831 Bytes
/
.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
language: java
env:
global:
- BUILD_CMD='mvn -Dskip.tests=true clean package'
- RUN_TESTS=true
sudo: true
matrix:
include:
- jdk: oraclejdk12
env:
- TEST_EXCLUDES="**/*_ESTest*"
- jdk: openjdk9
env:
- TEST_EXCLUDES="**/*_ESTest*"
- jdk: openjdk11
env:
- TEST_EXCLUDES="**/*_ESTest*"
cache:
directories:
- "${HOME}/dependencies"
- "${HOME}/.m2"
services:
- xvfb
before_install:
- "export CASHER_TIME_OUT=300"
- "export DISPLAY=:99.0"
- "source install_dependencies.sh"
- mvn validate
install:
- "$BUILD_CMD"
script:
- if [ "$RUN_TESTS" == "true" ]; then
cd test;
ln -s $(pwd)/../etc/log4j.properties .;
./RunTravisTests.sh -e "$TEST_EXCLUDES" | tee test.log && [ -z "$(grep 'Failures:\s[^0]\|Errors:\s[^0]' test.log)" ];
fi