forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.13 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
language: java
# moving to Ubuntu Bionic 18.04, see https://docs.travis-ci.com/user/reference/overview/
dist: bionic
env:
global:
- M2_HOME="/usr/local/maven"
matrix:
- SCRIPT=travis-jdk8.sh
- SCRIPT=travis-jdk10.sh
- SCRIPT=travis-jdk11.sh
- SCRIPT=travis-coverage.sh
- SCRIPT=travis-extra.sh
# in langage:java, Travis executes by default "mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V"
# This is not what we want because:
# - it executes checkstyle (we have a specific job for this)
# - it's useless ("mvn test" later does all the necessary tasks automatically)
# - it makes the build longer (we want a fast job)
# Java8
install:
- sudo apt-get -y install openjdk-8-jdk
# we want silent logs in travis but verbose ones on the developer machine (ie the default logback config)
- mv chore/travis/logback.xml src/test/resources/
script: ./chore/travis/$SCRIPT
# last step, see https://docs.travis-ci.com/user/job-lifecycle/
after_script: ./chore/travis/travis-master.sh
cache:
directories:
- $HOME/.m2
before_cache:
- rm -rf $HOME/.m2/fr/inria/ # delete all to be sure we always get last snapshot of spoon