Skip to content

Commit d65c21c

Browse files
authored
Added clean task to smoke tests. (#527)
This change allows the smoke tests to clean all build variants created by the infrastructure.
1 parent 18d4e7e commit d65c21c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

smoke-tests/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import java.nio.file.Files
16+
import java.nio.file.Path
17+
import java.nio.file.Paths
18+
1519
buildscript {
1620
repositories {
1721
google()
@@ -114,4 +118,12 @@ dependencies {
114118
storageImplementation "com.google.firebase:firebase-storage"
115119
}
116120

121+
clean.doLast {
122+
def paths = Files.newDirectoryStream(Paths.get("."), "build-*")
123+
124+
for (Path path : paths) {
125+
project.delete "$path/"
126+
}
127+
}
128+
117129
apply plugin: "com.google.gms.google-services"

0 commit comments

Comments
 (0)