Test before push.
This commit is contained in:
parent
b919eb17ac
commit
79da75e806
1 changed files with 7 additions and 2 deletions
|
|
@ -72,16 +72,21 @@ task pushLatestImage(type: Exec) {
|
||||||
+ "/${project.name}:latest"
|
+ "/${project.name}:latest"
|
||||||
}
|
}
|
||||||
|
|
||||||
task pushImages {
|
task pushForTest {
|
||||||
dependsOn pushImage
|
dependsOn pushImage
|
||||||
dependsOn pushLatestImage
|
dependsOn pushLatestImage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task pushImages {
|
||||||
|
dependsOn test
|
||||||
|
dependsOn pushForTest
|
||||||
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
enabled = project.hasProperty("k8s.testCluster")
|
enabled = project.hasProperty("k8s.testCluster")
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
dependsOn project.tasks["pushImages"]
|
dependsOn project.tasks["pushForTest"]
|
||||||
}
|
}
|
||||||
|
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue