Skip to content

Commit ac08887

Browse files
committed
Update travis file
1 parent 929b1d5 commit ac08887

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.travis.yml.old

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
language: java
2+
jobs:
3+
fast_finish: true
4+
5+
branches:
6+
only:
7+
- master
8+
9+
jdk:
10+
- oraclejdk9
11+
12+
before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"
13+
14+
addons:
15+
sonarcloud:
16+
organization: "jmrozanec-github"
17+
token:
18+
secure: "ZmVdpiC5ivHP72R7NZsv3s9XM9WuZQ//psUbpxJf+HLJGes+dAUppkiIBBICLwGstCCdyfTx1XaW56Gh2zTohrNBhv2S7OmrWwp8+o+dCIb1k6B4PsQ3b6h5bplcorAItMstoBZB8EowG875QENwlrZuB/qBHGy61vgERiNzPgA="
19+
script:
20+
- >
21+
if [ "$TRAVIS_PULL_REQUEST" != "false" ];then
22+
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;
23+
sonar-scanner
24+
fi
25+
- >
26+
if [ "$TRAVIS_PULL_REQUEST" = "false" ];then
27+
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package -Dmaven.javadoc.skip=true;
28+
sonar-scanner
29+
fi
30+
31+
cache:
32+
directories:
33+
- '$HOME/.m2/repository'
34+
- '$HOME/.sonar/cache'
35+
36+
after_success:
37+
- mvn cobertura:cobertura coveralls:cobertura
38+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)