diff options
Diffstat (limited to 'build_files/buildbot/master.cfg')
-rw-r--r-- | build_files/buildbot/master.cfg | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/build_files/buildbot/master.cfg b/build_files/buildbot/master.cfg index aee6f1175eb..f6aa6390e8c 100644 --- a/build_files/buildbot/master.cfg +++ b/build_files/buildbot/master.cfg @@ -70,18 +70,7 @@ def svn_step(): def lib_svn_step(dir): return SVN(name='lib svn', baseURL='https://svn.blender.org/svnroot/bf-blender/%%BRANCH%%/lib/' + dir, mode='update', defaultBranch='trunk', workdir='lib/' + dir) -def scons_compile_step(): - return Compile(command=['python', 'scons/scons.py'], workdir='blender') - -def scons_file_upload(f, id): - filename = 'buildbot_upload_' + id + '.zip' - unpack_script = 'master_unpack.py' - - f.addStep(Compile(name='package', command=['python', 'scons/scons.py', 'BF_QUICK=slnt', 'buildslave'], description='packaging', descriptionDone='packaged', workdir='blender')) - f.addStep(FileUpload(name='upload', slavesrc='buildbot_upload.zip', masterdest=filename, maxsize=100*1024*1024, workdir='install')) - f.addStep(MasterShellCommand(name='unpack', command=['python', unpack_script, filename], description='unpacking', descriptionDone='unpacked')) - -# generic +# generic builder def generic_builder(id, libdir=''): filename = 'buildbot_upload_' + id + '.zip' @@ -98,28 +87,21 @@ def generic_builder(id, libdir=''): f.addStep(Compile(command=['python', compile_script, id])) f.addStep(Test(command=['python', test_script, id])) f.addStep(ShellCommand(name='package', command=['python', pack_script, id], description='packaging', descriptionDone='packaged')) - f.addStep(FileUpload(name='upload', slavesrc='buildbot_upload.zip', masterdest=filename, maxsize=100*1024*1024)) + if id.find('cmake') != -1: + f.addStep(FileUpload(name='upload', slavesrc='buildbot_upload.zip', masterdest=filename, maxsize=100*1024*1024)) + else: + f.addStep(FileUpload(name='upload', slavesrc='buildbot_upload.zip', masterdest=filename, maxsize=100*1024*1024, workdir='install')) f.addStep(MasterShellCommand(name='unpack', command=['python', unpack_script, filename], description='unpacking', descriptionDone='unpacked')) return f +# builders + add_builder(c, 'mac_x86_64_cmake', 'darwin-9.x.universal', generic_builder) add_builder(c, 'mac_i386_cmake', 'darwin-9.x.universal', generic_builder) add_builder(c, 'mac_ppc_cmake', 'darwin-9.x.universal', generic_builder) add_builder(c, 'linux_x86_64_cmake', '', generic_builder) add_builder(c, 'linux_x86_64_scons', '', generic_builder) - -# win32 scons - -# TODO: add scons test target -def win32_scons(id, libdir): - f = BuildFactory() - f.addStep(svn_step()) - f.addStep(lib_svn_step(libdir)) - f.addStep(scons_compile_step()) - scons_file_upload(f, id) - return f - -add_builder(c, 'win32_scons', 'windows', win32_scons) +add_builder(c, 'win32_scons', 'windows', generic_builder) # SCHEDULERS # |