Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit b0ad357

Browse files
committed
Run sonar only when token is available
1 parent 0cb2f81 commit b0ad357

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
@@ -19,7 +19,7 @@ script:
1919
- npm run lint
2020
- npm run test-ci
2121
- npm run coveralls
22-
- sonar-scanner -Dsonar.login=${SONAR_TOKEN}
22+
- 'if [ -n "$SONAR_TOKEN" ]; then sonar-scanner -Dsonar.login=${SONAR_TOKEN}; fi'
2323

2424
deploy:
2525
provider: npm

0 commit comments

Comments
 (0)