Skip to content

Commit 08b83f1

Browse files
committed
Do not run Sonar analysis on PR
1 parent 80723ba commit 08b83f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ matrix:
55
fast_finish: true
66
include:
77
- jdk: oraclejdk8
8-
env: WITH_SONAR_ANALYSIS=true
8+
# Do not run analysis on PR (secure env variables like SONAR_TOKEN are not always available)
9+
env: WITH_SONAR_ANALYSIS=$([ "$TRAVIS_PULL_REQUEST" = "false" ] && echo true || echo false)
910
- jdk: oraclejdk9
1011
- jdk: openjdk8
1112
- jdk: openjdk9

0 commit comments

Comments
 (0)