diff options
author | Julien Herr <julien.herr@alcatel-lucent.com> | 2015-10-22 22:43:24 +0200 |
---|---|---|
committer | Julien Herr <julien.herr@alcatel-lucent.com> | 2015-10-22 22:57:17 +0200 |
commit | 141d3ae5084a3a2d9c182cab6c366cc89eded6aa (patch) | |
tree | da9e87793ff2c3cd3f75fe76105944b3c3b1cba2 /travis.sh | |
parent | 275a57d48e63d10dbf08b6bc0fa56d0f0ad2c4ff (diff) | |
download | testng-141d3ae5084a3a2d9c182cab6c366cc89eded6aa.tar.gz |
Add configuration for PR analysis with Sonarqube
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/travis.sh b/travis.sh new file mode 100755 index 00000000..d5a72442 --- /dev/null +++ b/travis.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +./gradlew clean test +if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + if [ -n "$SONAR_GITHUB_OAUTH" ]; then + ./gradlew sonarqube \ + -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \ + -Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \ + else + echo "No oauth token available" + fi +fi
\ No newline at end of file |