Skip to content

Commit

Permalink
Mark tasks that rerun {Unit,IntegrationDocumentation} tests as never …
Browse files Browse the repository at this point in the history
…up-to-date

These gradle tasks are meant to run tests, therefore avoid producing UP-TO-DATE status and always re-run the tests.
  • Loading branch information
mprimi committed Nov 14, 2017
1 parent 0067ddb commit c7967fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ configure(javaProjects) {
excludeCategories "com.netflix.genie.test.categories.IntegrationTest"
excludeCategories "com.netflix.genie.test.categories.DocumentationTest"
}
outputs.upToDateWhen {
return false
}
}

task integrationTests(type: Test, group: "verification") {
Expand All @@ -177,6 +180,9 @@ configure(javaProjects) {
excludeCategories "com.netflix.genie.test.categories.UnitTest"
excludeCategories "com.netflix.genie.test.categories.DocumentationTest"
}
outputs.upToDateWhen {
return false
}
}

task documentationTests(type: Test, group: "verification") {
Expand All @@ -185,6 +191,9 @@ configure(javaProjects) {
excludeCategories "com.netflix.genie.test.categories.UnitTest"
excludeCategories "com.netflix.genie.test.categories.IntegrationTest"
}
outputs.upToDateWhen {
return false
}
}

compileJava {
Expand Down

0 comments on commit c7967fd

Please sign in to comment.