-
Notifications
You must be signed in to change notification settings - Fork 262
/
.travis.yml.old
38 lines (32 loc) · 1.07 KB
/
.travis.yml.old
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
language: java
jobs:
fast_finish: true
branches:
only:
- master
jdk:
- oraclejdk9
before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"
addons:
sonarcloud:
organization: "jmrozanec-github"
token:
secure: "ZmVdpiC5ivHP72R7NZsv3s9XM9WuZQ//psUbpxJf+HLJGes+dAUppkiIBBICLwGstCCdyfTx1XaW56Gh2zTohrNBhv2S7OmrWwp8+o+dCIb1k6B4PsQ3b6h5bplcorAItMstoBZB8EowG875QENwlrZuB/qBHGy61vgERiNzPgA="
script:
- >
if [ "$TRAVIS_PULL_REQUEST" != "false" ];then
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package --settings target/travis/settings.xml -Dsettings.security=target/travis/settings-security.xml -Dmaven.javadoc.skip=true;
sonar-scanner
fi
- >
if [ "$TRAVIS_PULL_REQUEST" = "false" ];then
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package -Dmaven.javadoc.skip=true;
sonar-scanner
fi
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
after_success:
- mvn cobertura:cobertura coveralls:cobertura
- bash <(curl -s https://codecov.io/bash)