Explorar el Código

Enable coverage only in CI (#4068)

Enable coverage only in CI
Tobias Kaminsky hace 6 años
padre
commit
71e73134b5
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      .drone.yml
  2. 1 1
      build.gradle

+ 1 - 0
.drone.yml

@@ -53,6 +53,7 @@ steps:
         from_secret: GIT_USERNAME
       GIT_TOKEN:
         from_secret: GIT_TOKEN
+      ORG_GRADLE_PROJECT_coverage: ''
     commands:
       - ./gradlew assembleGplay
       - emulator -avd android-27 -no-window -no-audio &

+ 1 - 1
build.gradle

@@ -125,7 +125,7 @@ android {
 
         buildTypes {
             debug {
-                testCoverageEnabled true
+                testCoverageEnabled (project.hasProperty('coverage') ? true : false)
             }
         }