Skip to content

Commit

Permalink
Disable build cache for packaging tests (#51717)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Jan 31, 2020
1 parent fcd3fcd commit ee98a52
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@
import org.gradle.api.plugins.ExtraPropertiesExtension;
import org.gradle.api.plugins.JavaBasePlugin;
import org.gradle.api.provider.Provider;
import org.gradle.api.specs.Specs;
import org.gradle.api.tasks.Copy;
import org.gradle.api.tasks.TaskInputs;
import org.gradle.api.tasks.TaskProvider;
@@ -328,6 +329,7 @@ private static TaskProvider<GradleDistroTestTask> configureVMWrapperTask(

private static TaskProvider<?> configureDistroTest(Project project, ElasticsearchDistribution distribution) {
return project.getTasks().register(destructiveDistroTestTaskName(distribution), Test.class, t -> {
t.getOutputs().doNotCacheIf("Build cache is disabled for packaging tests", Specs.satisfyAll());
t.setMaxParallelForks(1);
t.setWorkingDir(project.getProjectDir());
t.systemProperty(DISTRIBUTION_SYSPROP, distribution.toString());
1 change: 1 addition & 0 deletions distribution/docker/build.gradle
Original file line number Diff line number Diff line change
@@ -137,6 +137,7 @@ processTestResources {
}

task integTest(type: Test) {
outputs.doNotCacheIf('Build cache is disabled for Docker tests') { true }
maxParallelForks = '1'
include '**/*IT.class'
// don't add the tasks to build the docker images if we have no way of testing them

0 comments on commit ee98a52

Please sign in to comment.