forked from viadee/camunda-kafka-polling-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·17 lines (17 loc) · 936 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: java
addons:
# see https://docs.travis-ci.com/user/sonarcloud/
sonarcloud:
organization: "viadee"
# token is provided by the environment variable SONAR_TOKEN in travis settings
# Please note the syntax change as of March 2020 (https://community.sonarsource.com/t/error-not-authorized-please-check-the-properties-sonar-login-and-sonar-password/21076/7)
token: $SONAR_TOKEN
# the following command line builds the project, runs the tests with coverage and then executes the SonarCloud analysis.
# In case of external pull requests, no SONAR_SCANNER_HOME is defined, and SonarCloud analysis is not possible.
# (https://community.sonarsource.com/t/travis-plugin-is-failing-on-external-pull-request/807/3)
script: >-
if [ "${SONAR_TOKEN}" != "" ]; then
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar
else
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify
fi