-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 2.42 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
language: java
jdk: oraclejdk8
sudo: false
cache:
directories:
- "$HOME/.m2"
- "$HOME/apache-maven-3.6.0"
- ""
addons:
apt:
packages:
- graphviz
sonarcloud:
organization: "earcam-github"
token:
secure: "oJMmgr1sljCHu2LULAvvplYVuOx0Y5sY125k3MzzdY/2oisZouW68Wy0jV7Sn3y4exvK23dHrR40RwbfVDMid/A5tF7agdN5w83Obp3DNArn39ESnLb7mgO90HvZdc1hisqBF/1+alHiQ/+LUnqGZ1NvmZk+ov2Gtyaqii0fJXLuY2kr8xQE/FSgEciqVqlFhLw+/4BesMtLUKVkuczri94VtAetMDXW12nTqgPy5UJKRAGB7CaO5Py+eYuUGhCN7qpwmA5KCWY+NM82RNF/Fwzubj5exYGi3L5tl8poZUO7Kne/PFPnhwoO/cVEjSMW69oDirauAENuGLLqwazA04vGdo5YnCBvAooMFwClzj8c49eOPFvJc3eYKiHCm8UOmdtZcTj+8wDHCfFr3BKZ6YyZwwh6Y4jh1UWfrDAcCYseWBKTbtPJqvpHiMMjeCv/NEqebaIYCctJP3BVLuQ36Ly8FylPCD5dcCnjVLtJEnGwcGyuaQNguIM5Hxw4z/PqxSWsHuNEjBzaWUt/H/3QdvnSXrDmFPEhyxmQZ7vhEXKgzEybBWXkYTEFQJLTE/IKbPGs7GQE0jaXdQPIfiH7ouM/A1Mk7zWRASGqTItvwiIwWN9Nbeg9kJmWgVKx5T1RaAu22t0mWhPjQN0jnon3aJxWQTAhWQeCI7d3K0NxsR4="
before_install:
- sudo add-apt-repository ppa:linuxuprising/java -y
- sudo apt-get update -q
- echo debconf shared/accepted-oracle-license-v1-2 select true | sudo debconf-set-selections
- echo debconf shared/accepted-oracle-license-v1-2 seen true | sudo debconf-set-selections
- sudo apt-get install oracle-java11-installer -y
- export JAVA_8_HOME=/usr/lib/jvm/java-8-oracle
- export JAVA_HOME=${JAVA_8_HOME}
- mkdir -p $HOME/.m2
- export M2_HOME=$HOME/apache-maven-3.6.0
- if [ ! -d $M2_HOME/bin ]; then curl https://archive.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz | tar zxf - -C $HOME; fi
- export PATH=$M2_HOME/bin:$PATH
install:
- chmod go-rwx -R $HOME/.m2
before_script:
- wget https://bitbucket.org/earcam/io.earcam.maven/raw/master/io.earcam.maven.toolchain/src/main/resources/toolchain/continuous-integration-hotspot-linux-debian-amd64.xml -O ~/.m2/toolchains.xml
- wget https://bitbucket.org/earcam/io.earcam.maven/raw/master/io.earcam.maven.configuration/src/main/resources/settings.xml -O $HOME/ci-settings.xml
- mvn -v
script:
- export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- mvn --batch-mode --settings $HOME/ci-settings.xml -U -P '!strict,jdk-oracle,analyse,report,sonar'
- mvn --batch-mode --settings $HOME/ci-settings.xml -U -P '!strict,jdk-oracle,analyse,report,site'
- mvn --batch-mode --settings $HOME/ci-settings.xml -P '!strict' org.eluder.coveralls:coveralls-maven-plugin:report
after_success: bash <(curl -s https://codecov.io/bash)