Add "dev" and "devFull" to build
* Add "dev" and "devFull" to build
`gradlew dev`: formats the code + runs the build + runs tests
`gradle devFull`: does all of `dev` + run integration tests
@@ -351,3 +351,25 @@ subprojects {
}
/* INCLUDED PROJECT DEPENDENCY HELPER */
}
+
+
+tasks.register("dev") {
+ subprojects.each { subproject ->
+ subproject.tasks.check.dependsOn subproject.tasks.googleJavaFormat
+ dependsOn subproject.tasks.check
+ }
+}
+
+tasks.register("devFull") {
+ if (!System.getenv('JIB_INTEGRATION_TESTING_PROJECT')
+ && !System.getenv('JIB_INTEGRATION_TESTING_LOCATION')) {
+ throw new GradleException(
+ "Must set environment variable JIB_INTEGRATION_TESTING_PROJECT to the "
+ + "GCP project to use for integration testing or "
+ + "JIB_INTEGRATION_TESTING_LOCATION to a suitable registry/repository location.");
+ }
+ dependsOn tasks.dev
+ subprojects.each { subproject ->
+ dependsOn subproject.tasks.integrationTest
+ }
+}
