From ecd67531f114a1f80eed76e0d8225bd1488e9bd2 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Wed, 5 Mar 2014 07:12:12 +0300 Subject: buildbot.yml: Create virtualenv --- testing/buildbot.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testing') diff --git a/testing/buildbot.yml b/testing/buildbot.yml index 0bf28569..38986e82 100644 --- a/testing/buildbot.yml +++ b/testing/buildbot.yml @@ -12,6 +12,7 @@ # botuser can be overridden with -e 'botuser=scons2' - botuser: scons - hgrc: /home/{{ botuser }}/.hgrc + - venv: /home/{{ botuser }}/buildbot-virtualenv tasks: # --- install requirements --- @@ -21,6 +22,7 @@ - mercurial - python-virtualenv + # --- enable mercurial purge extension --- - name: create .hgrc if necessary stat: path={{ hgrc }} register: st @@ -30,3 +32,8 @@ ini_file: dest={{ hgrc }} backup=yes section=extensions option=hgext.purge value= + + # --- setup virtualenv for buildbot --- + - name: setup buildbot-virtualenv + command: /usr/bin/virtualenv {{ venv }} + creates={{ venv }}/bin -- cgit v1.2.1