File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change
1
+ import org.elasticsearch.gradle.info.BuildParams
2
+
1
3
evaluationDependsOn(xpackModule(' core' ))
2
4
3
5
apply plugin : ' elasticsearch.esplugin'
@@ -44,13 +46,19 @@ task internalClusterTest(type: Test) {
44
46
45
47
check. dependsOn internalClusterTest
46
48
47
- // add all sub-projects of the qa sub-project
48
- gradle. projectsEvaluated {
49
- project. subprojects
50
- .find { it. path == project. path + " :qa" }
51
- .subprojects
52
- .findAll { it. path. startsWith(project. path + " :qa" ) }
53
- .each { check. dependsOn it. check }
49
+ /* ***************************************************************
50
+ * Enable QA/rest integration tests for snapshot builds only *
51
+ * TODO: Enable for all builds upon this feature release *
52
+ ****************************************************************/
53
+ if (BuildParams . isSnapshotBuild()) {
54
+ // add all sub-projects of the qa sub-project
55
+ gradle. projectsEvaluated {
56
+ project. subprojects
57
+ .find { it. path == project. path + " :qa" }
58
+ .subprojects
59
+ .findAll { it. path. startsWith(project. path + " :qa" ) }
60
+ .each { check. dependsOn it. check }
61
+ }
54
62
}
55
63
56
64
/* *********************************************
You can’t perform that action at this time.
0 commit comments