-
Notifications
You must be signed in to change notification settings - Fork 88
/
.travis.yml
40 lines (35 loc) · 905 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
37
38
39
40
dist: trusty
language: java
jdk:
# - openjdk6
# - openjdk7
# - oraclejdk7
- oraclejdk8
- openjdk11
addons:
# apt:
# packages:
# - openjdk-6-jdk
sonarcloud:
organization: "uwolfer-github"
token: $SONAR_TOKEN
hosts:
- buildhost
hostname: buildhost
cache:
directories:
- $HOME/.m2/repository/
- $HOME/.sonar/cache/
#install:
# - if [[ "$TRAVIS_JDK_VERSION" == "openjdk6" ]]; then
# echo "Downloading Maven 3.0";
# wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
# unzip -qq apache-maven-3.0-bin.zip || travis_terminate 1;
# export M2_HOME=$PWD/apache-maven-3.0;
# export PATH=$M2_HOME/bin:$PATH;
# mvn -version;
# fi
after_success:
if [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then
mvn clean test jacoco:report coveralls:report jacoco:prepare-agent sonar:sonar;
fi