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:
Clinton 2018-01-31 20:46:31 +00:00 committed by GitHub
parent 941429d3a7
commit 409cdf05e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ tags
.DS_Store .DS_Store
*.log *.log
*.orig *.orig
corda-docs-only-build
# Created by .ignore support plugin (hsz.mobi) # Created by .ignore support plugin (hsz.mobi)

View File

@ -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) // 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) { if(file('corda-docs-only-build').exists() || (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()) {
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 { allprojects {
test { test {