Skip to content

Commit

Permalink
Skip release build tests for external test modules (#62579)
Browse files Browse the repository at this point in the history
The tests don't make sense for release builds.

closes #62435
  • Loading branch information
rjernst authored Sep 17, 2020
1 parent 1b030e7 commit 1d3dacf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions test/external-modules/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@

import org.elasticsearch.gradle.info.BuildParams;

subprojects {
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'

esplugin {
name it.name
licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
}

tasks.named('yamlRestTest').configure {
it.onlyIf { BuildParams.isSnapshotBuild() }
}
}
3 changes: 0 additions & 3 deletions test/external-modules/delayed-aggs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* under the License.
*/

apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'

esplugin {
description 'A test module that allows to delay aggregations on shards with a configurable time'
classname 'org.elasticsearch.search.aggregations.DelayedShardAggregationPlugin'
Expand Down

0 comments on commit 1d3dacf

Please sign in to comment.