Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. set -ev
  3. if [ -v SONAR_TOKEN ]; then
  4. docker pull pierrevincent/sonar-runner
  5. SONAR_OPTIONS="-Dsonar.login=$SONAR_TOKEN"
  6. if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
  7. SONAR_OPTIONS="$SONAR_OPTIONS -Dsonar.github.oauth=$SONAR_GITHUB -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST -Dsonar.analysis.mode=issues"
  8. fi
  9. docker run --rm -v $(pwd):/data pierrevincent/sonar-runner $SONAR_OPTIONS
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement