Added first cut at debian

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-09-11 19:00:48 +02:00
parent 8609a9739c
commit 1a52214c72

View File

@@ -142,6 +142,26 @@ def python_slave(key, platform, conda_env, cmake_args = [], cmake_env = {}, buil
return factory
def deb_slave(key, platform, conda_env, cmake_args = [], cmake_env = {}, build_args = [], git_mode = 'incremental'):
factory = BuildFactory()
working_folder = "build/wrappers/DEB"
factory.addStep(ShellCommand(command=cleanCommand, description='fullclean?', workdir=""))
# Check out sources
factory.addStep(Git(repourl='git://github.com/CoolProp/CoolProp', mode=git_mode, submodules = True, progress=True, haltOnFailure = True))
factory.addStep(ShellCommand(command = ' '.join(source + ["bsh","package.bsh"]),
env = cmake_env,
workdir= working_folder,
haltOnFailure = True))
factory.addStep(MakeDirectory(dir=working_folder+'/DEB', haltOnFailure = True))
factory.addStep(ShellCommand(command = ' '.join(source + ["copy","*.deb","DEB"]),
env = cmake_env,
workdir= working_folder,
haltOnFailure = True))
factory.addStep(DirectoryUpload(slavesrc="build/wrappers/DEB/DEB", masterdest="public_html/binaries", url="public_html/binaries/DEB", compress="bz2"))
return factory
def cmake_slave(mod_name, platform, git_mode = 'incremental', install = True, cmake_args = [], build_args = [], ctest_args = [], cmake_env={}, test = True):
"""
Parameters