File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ android:
16
16
- ' android-sdk-license-.+'
17
17
- ' google-gdk-license-.+'
18
18
script :
19
- - ./gradlew clean test :library:prepareArtifacts
19
+ - ./gradlew clean :library:testAll :library:prepareArtifacts
Original file line number Diff line number Diff line change @@ -56,6 +56,15 @@ def bintrayUploadTasks() {
56
56
}. toArray()
57
57
}
58
58
59
+ /**
60
+ * Returns a list of tasks names to test submodules.
61
+ */
62
+ def testTasks () {
63
+ return project. ext. submodules. collect { name ->
64
+ " :${ name} :test"
65
+ }. toArray()
66
+ }
67
+
59
68
/**
60
69
* Prepare artifacts for this an all sub-projects.
61
70
*/
@@ -93,3 +102,9 @@ task bintrayUploadAll(dependsOn: [
93
102
bintrayUploadTasks()]) {
94
103
95
104
}
105
+
106
+ /**
107
+ * Test all submodules.
108
+ */
109
+ task testAll (dependsOn : [testTasks()]) {
110
+ }
You can’t perform that action at this time.
0 commit comments