Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b037d4

Browse files
jgeballwasylow
authored andcommitted
Adding fix to avoid running sonar-scanner on external pull-requests.
1 parent 86276ec commit 7b037d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ before_script:
9595
script:
9696
- if [[ ! $TRAVIS_TAG ]]; then bash test/install_and_run_tests.sh; fi
9797
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/validate_report_files.sh; fi
98-
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ]; then bash .travis/run_sonar_scanner.sh; fi
98+
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "${TRAVIS_PULL_REQUEST_SLUG}" = "${TRAVIS_REPO_SLUG}" ]; then bash .travis/run_sonar_scanner.sh; fi
9999
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/coveralls_uploader.sh; fi
100100

101101
notifications:

0 commit comments

Comments
 (0)