mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
First attempt to allow for a force of all expensive docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -231,6 +231,9 @@ def getBaseFactory(gitMode = 'incremental'):
|
||||
factory.addStep(Git(repourl='git://github.com/CoolProp/CoolProp', mode=gitMode, submodules = True, progress=True, haltOnFailure = True))
|
||||
return factory
|
||||
|
||||
@properties.renderer
|
||||
def fullBuildCommand(props):
|
||||
return ' '.join(["python", "__init__.py", str(props.getProperty('fullBuild', default = False))])
|
||||
|
||||
# All what is needed to create the website, it makes sense to run the
|
||||
# nightly builds on the same machine. This avoids extra data transfer.
|
||||
@@ -250,10 +253,7 @@ def websiteFactory(platform, gitMode='incremental', fullBuild=False):
|
||||
# Install the latest CoolProp
|
||||
factory.addStep(ShellCommand(command=["python", "setup.py", "install"], workdir= 'build/wrappers/Python', haltOnFailure = True))
|
||||
# Create plots and fluid tables
|
||||
if fullBuild:
|
||||
factory.addStep(ShellCommand(command=["python", "__init__.py", "True"], workdir= 'build/Web/scripts', haltOnFailure = True))
|
||||
else:
|
||||
factory.addStep(ShellCommand(command=["python", "__init__.py", "False"], workdir= 'build/Web/scripts', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=fullBuildCommand, workdir= 'build/Web/scripts', haltOnFailure = True))
|
||||
# Run sphinx build
|
||||
factory.addStep(ShellCommand(command=["python", "-c", "\"import CoolProp; print(CoolProp.__file___)\""], workdir= 'build/wrappers/Python', haltOnFailure = True))
|
||||
# Run doxygen build
|
||||
@@ -1008,6 +1008,12 @@ c['schedulers'].append(ForceScheduler(
|
||||
properties=[
|
||||
BooleanParameter(name="fullclean",
|
||||
label="Do a full clean", default=False)]))
|
||||
c['schedulers'].append(ForceScheduler(
|
||||
name="force",
|
||||
builderNames=['Sphinx docs'],
|
||||
properties=[
|
||||
BooleanParameter(name="fullBuild",
|
||||
label="Do a full build of all the expensive docs", default=False)]))
|
||||
|
||||
c['schedulers'].append(Nightly(name='nightly',
|
||||
branch='master',
|
||||
|
||||
Reference in New Issue
Block a user