[pypy-commit] buildbot default: create a translate only nightly build factory

bivab noreply at buildbot.pypy.org
Mon Sep 10 13:47:44 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r685:96d568701f5e
Date: 2012-09-06 15:01 +0000
http://bitbucket.org/pypy/buildbot/changeset/96d568701f5e/

Log:	create a translate only nightly build factory

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -362,6 +362,46 @@
                                 workdir='.',
                                 blocksize=100 * 1024))
 
+class NightlyBuild(factory.BuildFactory):
+    def __init__(self, platform='linux',
+                 translationArgs=['-O2'], targetArgs=[],
+                 interpreter='pypy',
+                 prefix=[]
+                 ):
+        factory.BuildFactory.__init__(self)
+
+        setup_steps(platform, self)
+
+        self.addStep(Translate(translationArgs, targetArgs,
+                               interpreter=interpreter))
+        if '--no-translation-jit' in translationArgs:
+            kind = 'jitnojit'
+        elif '--stackless' in translationArgs:
+            kind = 'stackless'
+        elif '-Ojit' in translationArgs:
+            kind = 'jit'
+        elif '-O2' in translationArgs:
+            kind = 'nojit'
+        else:
+            kind = 'unknown'
+        name = 'pypy-c-' + kind + '-%(final_file_name)s-' + platform
+        self.addStep(ShellCmd(
+            description="compress pypy-c",
+            command=prefix + ["python", "pypy/tool/release/package.py",
+                     ".", WithProperties(name), 'pypy',
+                     '.'],
+            workdir='build'))
+        nightly = '~/nightly/'
+        if platform == "win32":
+            extension = ".zip"
+        else:
+            extension = ".tar.bz2"
+        pypy_c_rel = "build/" + name + extension
+        self.addStep(PyPyUpload(slavesrc=WithProperties(pypy_c_rel),
+                                masterdest=WithProperties(nightly),
+                                basename=name + extension,
+                                workdir='.',
+                                blocksize=100 * 1024))
 
 class JITBenchmark(factory.BuildFactory):
     def __init__(self, platform='linux', host='tannit', postfix=''):


More information about the pypy-commit mailing list