-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 828 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
34
35
36
dist: trusty
language: java
jdk:
oraclejdk8
addons:
apt:
update: true
sonarcloud:
organization: "cesardl-github" # the key of the org you chose at step #3
token: ${SONAR_TOKEN} # encrypted value of your token
git:
depth: false
cache:
directories:
- $HOME/.m2
- $HOME/.sonar/cache
- $HOME/.sonarscanner
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- xvfb-run mvn clean verify
- if [ "$TRAVIS_BRANCH" = "master" ]; then sonar-scanner; fi
after_script:
- export JACOCO_SOURCE_PATH=src/main/java
- ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
- ./cc-test-reporter upload-coverage