-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
23 lines (18 loc) · 664 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
language: java
git:
depth: false
jdk:
- openjdk8
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
addons:
sonarcloud:
organization: ${SONAR_ORGANIZATION}
script:
- 'if [ "${SONAR_SCANNER_HOME}" != "" ] && [ "${SONAR_ORGANIZATION}" != "" ]; then ./mvnw clean verify -U sonar:sonar -P test-with-jacoco; fi'
- 'if [ "${SONAR_SCANNER_HOME}" = "" ] || [ "${SONAR_ORGANIZATION}" = "" ]; then ./mvnw clean verify -U -P test-with-jacoco; fi'
after_success:
- bash <(curl -s https://codecov.io/bash) -F unittests -s "target/site/jacoco"
- bash <(curl -s https://codecov.io/bash) -F integration -s "target/site/jacoco-it"