[pypy-commit] buildbot default: Add a command to clean the 'build' directory if needed first.
arigo
noreply at buildbot.pypy.org
Wed Jun 8 16:36:24 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r513:78921d9e2829
Date: 2011-06-08 16:37 +0200
http://bitbucket.org/pypy/buildbot/changeset/78921d9e2829/
Log: Add a command to clean the 'build' directory if needed first.
diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -126,6 +126,15 @@
# for debugging
repourl = '/home/antocuni/pypy/pypy-hg'
#
+ if platform == 'win32':
+ command = "if not exist .hg rmdir /q /s ."
+ else:
+ command = "if [ ! -d .hg ]; then rm -fr * .[a-z]*; fi"
+ factory.addStep(ShellCmd(description="rmdir?",
+ command = command,
+ workdir = workdir,
+ haltOnFailure=False))
+ #
if platform == "win32":
command = "if not exist .hg %s"
else:
More information about the pypy-commit
mailing list