Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512bb1c commit dc49e49Copy full SHA for dc49e49
1 file changed
.travis/run_sonar_scanner.sh
@@ -30,9 +30,10 @@ else
30
fi
31
32
33
-#Are we running on develop branch ?
+#Are we running on utPLSQL repo and not an external PR?
34
echo "Check if we running from develop or on branch"
35
-if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [[ ! "${BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|"${MAIN_DEV_BRANCH}")$ ]]; then
+if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "${TRAVIS_PULL_REQUEST_SLUG}" = "${TRAVIS_REPO_SLUG}" ] && \
36
+ [[ ! "${BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|"${MAIN_DEV_BRANCH}")$ ]]; then
37
38
echo "" >> sonar-project.properties
39
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
0 commit comments