try doing explicit virtenv activation

This commit is contained in:
Tim Flink 2016-01-11 19:59:50 +00:00
parent 88e2e54b18
commit 77fb8056a5

View file

@ -188,10 +188,10 @@ def create_test_factory(repo_name, func=True):
mode='full',method='clobber'))
factory.addStep(ShellCommand(command=['virtualenv', '--system-site-packages', 'env']))
factory.addStep(ShellCommand(command=['bash', '-c', 'source env/bin/activate; pip install -r requirements.txt']))
factory.addStep(ShellCommand(command=['doit', 'test']))
factory.addStep(ShellCommand(command=['doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'chainbuild']))
factory.addStep(ShellCommand(command=['doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'buildtype=release', 'releasedocs']))
factory.addStep(ShellCommand(command=['doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'buildtype=release', 'updatelatest']))
factory.addStep(ShellCommand(command=['source env/bin/activate; doit', 'test']))
factory.addStep(ShellCommand(command=['source env/bin/activate; doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'chainbuild']))
factory.addStep(ShellCommand(command=['source env/bin/activate; doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'buildtype=release', 'releasedocs']))
factory.addStep(ShellCommand(command=['source env/bin/activate; doit', Interpolate('basedir=/srv/static/%(prop:Project)s'), 'buildtype=release', 'updatelatest']))
return factory