-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 3.03 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
#
# Add SonarCloud token with (where xxxxxxxxx is the raw token from Sonar - with no variable assignment):
#
# travis encrypt xxxxxxxxx -r GITHUB_USERNAME/GITHUB_PROJECT_NAME
#
#
language: java
sudo: required
cache:
directories:
- "$HOME/.m2"
- "$HOME/apache-maven-3.6.0"
- ''
addons:
apt:
packages:
- graphviz
sonarcloud:
organization: "earcam-github"
token:
secure: "RqaojDK2dxZ2CTTeNdL+6U8SO8qOvcvQb09xnt+Jcvw5j2+SQCLx3RoKckPOMdV90Hkx/raO9dACqCY2YJpGTpJersoz02DuphrvkkqBAxasJg29P/Rxw+Rc0z5fpErcj2uxIceRum50iPz+RqwezxGaNNz7MSDxDWx9WZsjus9fEsflk2aGWNr6k8lMtKuBjYV//iZcLYZEv5UTw4TtQnAU2rPxU5tqr3oxuO+Oj+ziM1bgPIQzPE3ipejuPCRBsm9+DFNKiTI+n7AIp6/aabfGP+bQRPuc1joFusLvMBoDducLZ+LRdQ7vllqPXtqDpA2AofJFXPSu3IhgoaSSRw9N2pN71j9lhosf08m+6lkeqEZsNH61PXSCxW+EZLzY2XMzGdaBi9KGlekfTpBymgirvjKOxVtTgL1bNT3nsh4fuM79m9Mr4ZC3gjgN8hMeZKDypEjVf0/jDecc6s8yPfBttkGqNgdKMoLm3jy4IiNK7XTu2ZxotUs2WVaBPdlK3/KIEI7COUkQFhWFSknk6tb6lIdpDRUdW+inNJ/VQNXkkptbrXDKXMGTTi+RD2Ulm+z4Mgo/xVWJmndS+XOk0tMdCAXSaZynv8hf1Xp0OyVhtORRrhTWlFhXicvJdgahBIh+QbraIbP3H2TzZmQskPSxevhF1xZ5I4ZrYw7YbO4="
before_install:
- sudo add-apt-repository ppa:webupd8team/java -y
- 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-java8-installer oracle-java9-installer oracle-java11-installer -y -q
- export JAVA_11_HOME=/usr/lib/jvm/java-11-oracle
- export JAVA_HOME=${JAVA_11_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:
- sudo 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
- sudo $M2_HOME/bin/mvn --toolchains $HOME/.m2/toolchains.xml --settings $HOME/ci-settings.xml -B -U -P 'analyse,report,jdk-oracle,sonar' -Drevapi.skip=true -Dforbiddenapis.skip=true -Dskip.execution.pitest=true
- sudo $M2_HOME/bin/mvn --toolchains $HOME/.m2/toolchains.xml --settings $HOME/ci-settings.xml -B -U -P 'analyse,report,jdk-oracle,site-graphic,site' -Drevapi.skip=true -Dforbiddenapis.skip=true -Dskip.execution.pitest=true
- #sudo $M2_HOME/bin/mvn --toolchains $HOME/.m2/toolchains.xml --settings $HOME/ci-settings.xml org.eluder.coveralls:coveralls-maven-plugin:report -Drevapi.skip=true -Dforbiddenapis.skip=true -Dskip.execution.pitest=true
after_success: bash <(curl -s https://codecov.io/bash)