mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Added option to enable docs only builds if a specific file is present (#2441)
Added option to enable docs only builds if a specific file is present
This commit is contained in:
parent
941429d3a7
commit
409cdf05e0
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ tags
|
||||
.DS_Store
|
||||
*.log
|
||||
*.orig
|
||||
corda-docs-only-build
|
||||
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
|
||||
|
@ -334,8 +334,12 @@ task generateApi(type: net.corda.plugins.GenerateApi){
|
||||
}
|
||||
|
||||
// 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")
|
||||
if(file('corda-docs-only-build').exists() || (System.getenv('CORDA_DOCS_ONLY_BUILD') != null)) {
|
||||
if(file('corda-docs-only-build').exists()) {
|
||||
logger.info("Tests are disabled due to presence of file 'corda-docs-only-build' in the project root")
|
||||
} else {
|
||||
logger.info("Tests are disabled due to the presence of envvar CORDA_DOCS_ONLY_BUILD")
|
||||
}
|
||||
|
||||
allprojects {
|
||||
test {
|
||||
|
Loading…
Reference in New Issue
Block a user