2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* The OpenSearch Contributors require contributions made to
|
|
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
|
|
* compatible open source license.
|
|
|
|
*
|
|
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
|
|
* GitHub history for details.
|
|
|
|
*/
|
|
|
|
|
2021-03-08 13:06:46 -05:00
|
|
|
import org.opensearch.gradle.test.GradleDistroTestTask
|
2019-08-12 19:01:53 -04:00
|
|
|
|
|
|
|
String boxId = project.properties.get('vagrant.windows-2016.id')
|
|
|
|
if (boxId != null) {
|
|
|
|
vagrant {
|
|
|
|
hostEnv 'VAGRANT_WINDOWS_2016_BOX', boxId
|
|
|
|
}
|
|
|
|
} else {
|
2019-08-20 16:12:15 -04:00
|
|
|
// box id was not supplied, so disable the distro tests
|
|
|
|
tasks.withType(GradleDistroTestTask).configureEach {
|
|
|
|
onlyIf { false }
|
2019-08-12 19:01:53 -04:00
|
|
|
}
|
|
|
|
}
|