From e5f2fdce2f293261a0caf0c3f7cdad593174ee8f Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Fri, 31 May 2019 15:55:56 +0200 Subject: Do not disable recording of code coverage in builds outside of CI While this adds little overhead, benefit is that remote Gradle cache entry can be used locally. --- travis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index a6562ef8912..7c858ca5433 100755 --- a/travis.sh +++ b/travis.sh @@ -36,12 +36,12 @@ case "$TARGET" in BUILD) git fetch --unshallow - ./gradlew build --no-daemon --console plain -PjacocoEnabled=true + ./gradlew build --no-daemon --console plain # the '-' at the end is needed when using set -u (the 'nounset' flag) # see https://stackoverflow.com/a/9824943/641955 if [[ -n "${SONAR_TOKEN-}" ]]; then - ./gradlew sonarqube --no-daemon --console plain \ + ./gradlew jacocoTestReport sonarqube --no-daemon --console plain \ -Dsonar.projectKey=org.sonarsource.sonarqube:sonarqube \ -Dsonar.organization=sonarsource \ -Dsonar.host.url=https://sonarcloud.io \ -- cgit v1.2.3