summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-05 07:12:12 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-03-05 07:12:12 +0300
commitecd67531f114a1f80eed76e0d8225bd1488e9bd2 (patch)
tree436317c2e8be5a6c3feb06e5a260c38202144071 /testing
parent890fced0e403297e22c158b26461303c7b1ed5cb (diff)
downloadscons-ecd67531f114a1f80eed76e0d8225bd1488e9bd2.tar.gz
buildbot.yml: Create virtualenv
Diffstat (limited to 'testing')
-rw-r--r--testing/buildbot.yml7
1 files changed, 7 insertions, 0 deletions
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