blob: d5a72442aebf1fcae041f10cc1736af041bbf7ed [file] [log] [blame]
#!/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