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

Skip to content

Commit bf00103

Browse files
committed
Fixes around syntax and adding a pull request token and properties
1 parent d505dfe commit bf00103

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

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

100100
notifications:

.travis/run_sonar_scanner.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ else
2020

2121
fi
2222

23+
add_sonar_property "sonar.pullrequest.github.token.secured" "${GITHUB_TRAVISCI_TOKEN}"
2324

2425
# We are updating sonar_properties only when is not a develop
2526
# if its a pull request we will create a separate
2627
if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [[ ! "${BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|"${MAIN_DEV_BRANCH}")$ ]]; then
2728
echo "Updating sonar properties to include branch name"
28-
29+
2930
add_sonar_property "${BRANCH_SONAR_PROPERTY}" "${BRANCH}"
3031

3132
if [ ! -z "$PR_BRANCH" ]; then

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ sonar.projectDescription=PL/SQL Unit Testing Framework
1919
sonar.plsql.file.suffixes=sql,tab,pkb,tpb
2020
sonar.language=plsql
2121

22+
sonar.pullrequest.github.endpoint=https://api.github.com/
23+
sonar.pullrequest.github.repository=utPLSQL/utPLSQL
24+
2225
# Encoding of the source code. Default is default system encoding
2326
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)