Skip to content

Commit

Permalink
Add MathCAD builders to buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed May 7, 2016
1 parent a7d74b4 commit fc9cdf1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions dev/buildbot/master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,41 @@ def excel_slave():
fixPermissions(factory)
return factory

def mathcad_slave():
"""
"""
working_folder = "build/build"

# Create the factory to add the actions to
factory = getBaseFactory()
#
factory.addStep(MakeDirectory(dir=working_folder+'/mathcadprime', haltOnFailure = True))
factory.addStep(MakeDirectory(dir=working_folder+'/mathcad15', haltOnFailure = True))
factory.addStep(RemoveDirectory(dir="build/install_root", haltOnFailure = False))

# ***************
# Build the MathCAD 15 dll
# ***************
factory.addStep(ShellCommand(command=["cmake", "../..",
"-DCOOLPROP_MATHCAD15_LIBRARY=ON","-G", "Visual Studio 10 2010", '-DCOOLPROP_MATHCAD15_ROOT="C:/Program Files (x86)/Mathcad/Mathcad 15"'],
workdir= working_folder+'/mathcad15',
haltOnFailure = True))
factory.addStep(ShellCommand(command=["cmake", "--build", ".", "--target", "install", "--config", "Release"], workdir = working_folder+'/mathcad15', haltOnFailure = True))

# *************************
# Build the MathCAD PRIME dll
# *************************
factory.addStep(ShellCommand(command=["cmake", "../..",
"-DCOOLPROP_PRIME_LIBRARY=ON", "Visual Studio 10 2010 Win64", '-DCOOLPROP_PRIME_ROOT="C:/Program Files/PTC/Mathcad Prime 3.1"'],
workdir= working_folder+'/mathcadprime',
haltOnFailure = True))
factory.addStep(ShellCommand(command=["cmake", "--build", ".", "--target", "install", "--config", "Release"], workdir = working_folder+'/mathcadprime', haltOnFailure = True))

# Upload the files
factory.addStep(DirectoryUpload(slavesrc="install_root",masterdest=master_loc_rel,url="binaries",compress="bz2"))
fixPermissions(factory)
return factory

def smath_builder():
"""
"""
Expand Down Expand Up @@ -1022,6 +1057,10 @@ c['builders'].append(
BuilderConfig(name="Excel",
slavenames=["windows-slave"],
factory = excel_slave() ) )
c['builders'].append(
BuilderConfig(name="MathCAD",
slavenames=["windows-slave"],
factory = mathcad_slave() ) )
c['builders'].append(
BuilderConfig(name="SMath",
slavenames=["windows-slave"],
Expand Down

0 comments on commit fc9cdf1

Please sign in to comment.