Skip to content

Commit c47ec1e

Browse files
committed
Added sonarqube conditionally
1 parent ffea42c commit c47ec1e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131
name: Run Tests, run static analysis and code coverage
3232
command: |
3333
java -XX:+PrintFlagsFinal -Xmx1g -version | grep -Ei "maxheapsize|maxram"
34-
./gradlew clean check codeCoverageReport --no-daemon
34+
if [ -n "$CIRCLE_PR_NUMBER" ]; then
35+
./gradlew clean check codeCoverageReport --no-daemon
36+
else
37+
./gradlew clean check codeCoverageReport sonarqube --no-daemon
38+
fi
3539
no_output_timeout: 900s
3640
environment:
3741
_JAVA_OPTIONS: -Xmx3G -XX:ReservedCodeCacheSize=1g

0 commit comments

Comments
 (0)