mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Added conditional to disable tests when CORDA_DOCS_ONLY_BUILD envvar is present (#2371)
This commit is contained in:
parent
6e817f014d
commit
a19b213d7d
27
build.gradle
27
build.gradle
@ -329,3 +329,30 @@ artifactory {
|
||||
task generateApi(type: net.corda.plugins.GenerateApi){
|
||||
baseName = "api-corda"
|
||||
}
|
||||
|
||||
// This exists to reduce CI build time when the envvar is set (can save up to 40 minutes)
|
||||
if(System.getenv('CORDA_DOCS_ONLY_BUILD') != null) {
|
||||
logger.info("Tests are disabled due to presence of envvar CORDA_DOCS_ONLY_BUILD")
|
||||
|
||||
allprojects {
|
||||
test {
|
||||
exclude '*/**'
|
||||
}
|
||||
|
||||
it.afterEvaluate {
|
||||
if(it.tasks.findByName("integrationTest") != null) {
|
||||
integrationTest {
|
||||
exclude '*/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
it.afterEvaluate {
|
||||
if(it.tasks.findByName("smokeTest") != null) {
|
||||
smokeTest {
|
||||
exclude '*/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user