Skip to content

Commit 55882b0

Browse files
committed
A different approach to start sonar scanner.
It requires Java code to be compiled so let's start in a job that builds all Java code.
1 parent 4038a1b commit 55882b0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ matrix:
6262
<<: *node
6363
<<: *chrome
6464
include:
65-
- script: sonar-scanner
6665
- env: MARIONETTE=1 SELENIUM_BROWSER=firefox NPM=test
6766
<<: *node
6867
<<: *firefox-latest
69-
- env: BZL="build //java/..."
68+
- env: BZL="build //java/..." SONAR=1
7069
<<: *java
7170
- env: BZL="test --test_size_filters=small //java/..."
7271
<<: *java

scripts/travis/script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ if [[ ! -z "$NPM" ]]; then
4242
cd javascript/node/selenium-webdriver; npm install; npm run $NPM
4343
fi
4444
fi
45+
46+
if ([[ ! -z "$SONAR" ]]); then
47+
sonar-scanner
48+
fi

0 commit comments

Comments
 (0)