File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
buildSrc/src/main/groovy/com/google/firebase/gradle/plugins/ci Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com.google.firebase.gradle.plugins.ci
16
16
17
+ import com.google.firebase.gradle.plugins.FirebaseLibraryPlugin
17
18
import org.gradle.api.Plugin
18
19
import org.gradle.api.Project
19
20
import org.gradle.api.Task
@@ -102,6 +103,10 @@ class ContinuousIntegrationPlugin implements Plugin<Project> {
102
103
tasks. maybeCreate(' check' )
103
104
tasks. maybeCreate(' deviceCheck' )
104
105
}
106
+
107
+ if (! isFirebaseLibrary(it)) {
108
+ tasks. maybeCreate(' checkCoverage' )
109
+ }
105
110
}
106
111
}
107
112
@@ -167,4 +172,8 @@ class ContinuousIntegrationPlugin implements Plugin<Project> {
167
172
private static boolean isAndroidProject (Project project ) {
168
173
ANDROID_PLUGINS . find { plugin -> project. plugins. hasPlugin(plugin) }
169
174
}
175
+
176
+ private static boolean isFirebaseLibrary (Project project ) {
177
+ project. plugins. hasPlugin(FirebaseLibraryPlugin . class)
178
+ }
170
179
}
You can’t perform that action at this time.
0 commit comments