[Checkins] SVN: gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py some more win32 fancyness
Adam Groszer
agroszer at gmail.com
Sun Apr 26 06:09:27 EDT 2009
Log message for revision 99506:
some more win32 fancyness
Changed:
U gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py
-=-
Modified: gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py
===================================================================
--- gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py 2009-04-26 09:49:35 UTC (rev 99505)
+++ gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py 2009-04-26 10:09:27 UTC (rev 99506)
@@ -1,5 +1,6 @@
# A buildbot master configuration for buildout-based project repositories
+import sys
import os.path
import subprocess
from twisted.python import log
@@ -17,6 +18,7 @@
from gocept.bsquare import status
+is_win32 = sys.platform == 'win32'
def split_file(path):
pieces = path.split("/")
@@ -35,12 +37,20 @@
command='buildout bootstrap .',
description=['bootstrapping'],
descriptionDone=['bootstrap']))
+ if is_win32:
+ command = "bin\\buildout.exe"
+ else:
+ command = 'bin/buildout'
f.addStep(Compile(name="buildout",
- command='bin/buildout',
+ command=command,
description=['building'],
descriptionDone=['build']))
+ if is_win32:
+ command = "bin\\test.exe --exit-with-status -1"
+ else:
+ command = 'bin/test --exit-with-status -1' #-1 == stop on first error
f.addStep(Compile(name="test",
- command='bin/test --exit-with-status -1',
+ command=command,
description=['testing'],
descriptionDone=['tests']))
More information about the Checkins
mailing list