[zorg] r183232 - Add steps to cleanup/install virtual environment to run the LNT tests for phased LNT builders.
David Dean
david_dean at apple.com
Tue Jun 4 08:49:16 PDT 2013
Author: ddean
Date: Tue Jun 4 10:49:16 2013
New Revision: 183232
URL: http://llvm.org/viewvc/llvm-project?rev=183232&view=rev
Log:
Add steps to cleanup/install virtual environment to run the LNT tests for phased LNT builders.
Modified:
zorg/trunk/zorg/buildbot/builders/LNTBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/LNTBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/LNTBuilder.py?rev=183232&r1=183231&r2=183232&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/LNTBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/LNTBuilder.py Tue Jun 4 10:49:16 2013
@@ -259,5 +259,26 @@ def CreateLNTNightlyFactory(nt_flags, cc
# The previous step will set it incorrectly
# We set it to the correct value in th following step
setProperty(f, 'got_revision', WithProperties('%(revision)s'))
+ # Create the LNT virtual env.
+ f.addStep(buildbot.steps.shell.ShellCommand(
+ name='venv.lnt.clean', command=['rm', '-rfv', 'lnt.venv'],
+ haltOnFailure=True, description=['clean', 'LNT', 'venv'],
+ workdir=WithProperties('%(builddir)s')))
+ f.addStep(buildbot.steps.shell.ShellCommand(
+ name='venv.lnt.create', command=['virtualenv', 'lnt.venv'],
+ haltOnFailure=True, description=['create', 'LNT', 'venv'],
+ workdir=WithProperties('%(builddir)s'),
+ env={'PATH' : '${PATH}:/usr/local/bin'}))
+ f.addStep(buildbot.steps.shell.ShellCommand(
+ name='venv.lnt.install', haltOnFailure=True,
+ command=[WithProperties('%(builddir)s/lnt.venv/bin/pip'), 'install',
+ '--index-url', package_url,
+ '-e', '.'],
+ description=['install', 'LNT'], workdir='lnt'))
+ # Clean up the sandbox dir.
+ f.addStep(buildbot.steps.shell.ShellCommand(
+ name='lnt.nightly-test.clean', command=['rm', '-rfv', 'nt'],
+ haltOnFailure=True, description=['clean', 'LNT', 'sandbox'],
+ workdir='tests'))
return f
More information about the llvm-commits
mailing list