mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Buildbot builder for Excel functional
This commit is contained in:
@@ -176,20 +176,21 @@ def excel_slave(git_mode = 'incremental'):
|
||||
factory.addStep(MakeDirectory(dir=working_folder+'/64bitDLL', haltOnFailure = True))
|
||||
factory.addStep(RemoveDirectory(dir="build/install_root", haltOnFailure = True))
|
||||
# Make 32-bit __stdcall DLL
|
||||
factory.addStep(ShellCommand(command=["cmake", "..", "-DCOOLPROP_32BIT_STDCALL_SHARED_LIBRARY=ON","-G", "Visual Studio 10"],
|
||||
factory.addStep(ShellCommand(command=["cmake", "../..", "-DCOOLPROP_32BIT_STDCALL_SHARED_LIBRARY=ON","-G", "Visual Studio 10"],
|
||||
workdir= working_folder+'/32bitDLL',
|
||||
haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=["cmake", "--build", ".", "--target", "install"], workdir = working_folder+'/32bitDLL', haltOnFailure = True))
|
||||
# Make 64-bit DLL
|
||||
factory.addStep(ShellCommand(command=["cmake", "..", "-DCOOLPROP_64BIT_SHARED_LIBRARY=ON","-G", "Visual Studio 10 Win64"],
|
||||
factory.addStep(ShellCommand(command=["cmake", "../..", "-DCOOLPROP_64BIT_SHARED_LIBRARY=ON","-G", "Visual Studio 10 Win64"],
|
||||
workdir= working_folder+'/64bitDLL',
|
||||
haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=["cmake", "--build", ".", "--target", "install"], workdir = working_folder+'/64bitDLL', haltOnFailure = True))
|
||||
|
||||
factory.addStep(MakeDirectory(dir=working_folder+'/MicrosoftExcel', haltOnFailure = True))
|
||||
# Copy the created DLL
|
||||
factory.addStep(ShellCommand(command=["copy", "install_root\shared_library\Windows\32bit__stdcall_calling_convention\*.dll", "MicrosoftExcel"], workdir = 'build', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=["copy", "install_root\shared_library\Windows\64bit\*.dll", "MicrosoftExcel\CoolProp_x64.dll"], workdir = 'build', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=' '.join(["copy", "/Y", "install_root\shared_library\Windows\\32bit__stdcall_calling_convention\*.dll", "MicrosoftExcel"]), workdir = 'build', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=' '.join(["move", "CoolProp.dll", "CoolProp_x64.dll"]), workdir = 'build/install_root/shared_library/Windows/64bit', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=' '.join(["copy", "install_root\\shared_library\\Windows\\64bit\\*.dll", "MicrosoftExcel"]), workdir = 'build', haltOnFailure = True))
|
||||
# Copy other files
|
||||
factory.addStep(ShellCommand(command=["copy", "wrappers\Excel\CoolProp.xlam", "MicrosoftExcel"], workdir = 'build', haltOnFailure = True))
|
||||
factory.addStep(ShellCommand(command=["copy", "wrappers\Excel\CoolProp.xla", "MicrosoftExcel"], workdir = 'build', haltOnFailure = True))
|
||||
@@ -249,6 +250,13 @@ c['builders'].append(
|
||||
factory = deb_slave()
|
||||
)
|
||||
)
|
||||
|
||||
c['builders'].append(
|
||||
BuilderConfig(name="Excel",
|
||||
slavenames=["windows-slave"],
|
||||
factory = excel_slave() ) )
|
||||
|
||||
|
||||
c['builders'].append(
|
||||
BuilderConfig(name="Sphinx docs",
|
||||
slavenames=["linux-slave"],
|
||||
|
||||
Reference in New Issue
Block a user