Skip to content

Commit

Permalink
ci(sonar): skip Sonar for pull requests
Browse files Browse the repository at this point in the history
In Travis no secrets are available during Pull Requests. See
travis-ci/travis-ci#10062
  • Loading branch information
saitho committed Mar 30, 2020
1 parent dd5e93b commit 029a60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
organization: saitho
script:
- pnpm test
- sonar-scanner
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi' # sonar only on non-PRs
- stage: release
if: branch = master
node_js: lts/*
Expand Down

0 comments on commit 029a60b

Please sign in to comment.