Skip to content

Commit

Permalink
Run SonarCloud analysis in Java 11 build
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Sep 18, 2020
1 parent e9c15c8 commit 3477327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ then
elif [ -n "$SONAR_SCANNER_HOME" ]
then
# Only run SonarQube analysis on one Travis-CI matrix configuration
# (namely: empty $SONAR_VERSION and Java 8
java -Xmx32m -version 2>&1 | grep -q 1.8.0 && add="sonar:sonar $add"
# (namely: empty $SONAR_VERSION and Java 11
java -Xmx32m -version 2>&1 | grep -q "11\.0" && add="sonar:sonar $add"
fi

mvn -B -V -e -Dstyle.color=always verify $add
Expand Down

0 comments on commit 3477327

Please sign in to comment.