forked from jborgers/sonar-pmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis.sh
More file actions
executable file
·30 lines (21 loc) · 739 Bytes
/
travis.sh
File metadata and controls
executable file
·30 lines (21 loc) · 739 Bytes
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
#!/bin/bash
set -eo pipefail
case "$TEST" in
ci)
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar verify -B -e -V -Dskip.failsafe.tests
;;
plugin)
# Unset environment settings defined by Travis that will collide with our integration tests
unset SONARQUBE_SCANNER_PARAMS SONAR_TOKEN SONAR_SCANNER_HOME
# Run integration tests
mvn verify -Dtest.sonar.version=${SQ_VERSION} -Dtest.sonar.plugin.version.java=${SJ_VERSION} -Dskip.surefire.tests -Dorchestrator.artifactory.url=https://repox.jfrog.io/repox
;;
javadoc)
# Create JavaDocs to check for problems with JavaDoc generation
mvn install javadoc:javadoc -DskipTests
;;
*)
echo "Unexpected TEST mode: $TEST"
exit 1
;;
esac