forked from jmrozanec/cron-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 800 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
language: java
jobs:
fast_finish: true
branches:
only:
- master
jdk:
- oraclejdk11
- openjdk11
before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"
addons:
sonarcloud:
organization: "jmrozanec-github"
script:
- >
if [ "$TRAVIS_PULL_REQUEST" != "false" ];then
mvn jacoco:prepare-agent install jacoco:report 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 jacoco:prepare-agent install jacoco:report package -Dmaven.javadoc.skip=true;
sonar-scanner
fi
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'