summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-05 08:14:52 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-03-05 08:14:52 +0300
commit7d6d68787fd9e10c81abfe8ec70ce9f8f8623142 (patch)
tree8eb46aa71093e2b1baf9418776826b44d43fdcf2 /testing
parent5b43f0b094489ce159e568660a2efa6c0efbf93e (diff)
downloadscons-7d6d68787fd9e10c81abfe8ec70ce9f8f8623142.tar.gz
buildbot: Create buildbot workdir, and do not backup bot .hgrc
Diffstat (limited to 'testing')
-rw-r--r--testing/buildbot.hosts2
-rw-r--r--testing/buildbot.yml26
2 files changed, 20 insertions, 8 deletions
diff --git a/testing/buildbot.hosts b/testing/buildbot.hosts
index 05614f63..3e0be7d8 100644
--- a/testing/buildbot.hosts
+++ b/testing/buildbot.hosts
@@ -1 +1 @@
-localhost ansible_connection=local \ No newline at end of file
+localhost ansible_connection=local builder=xxx pass=xxx \ No newline at end of file
diff --git a/testing/buildbot.yml b/testing/buildbot.yml
index d68cc59d..ee82343b 100644
--- a/testing/buildbot.yml
+++ b/testing/buildbot.yml
@@ -1,9 +1,16 @@
-# Ansible playbook to setup buildbot instance
-# http://scons.org/wiki/InstallingBuildbotSlaves
+# Ansible playbook to setup buildbot instance.
+# Edit buildbot.hosts to set builder and pass variables.
+# Then exec:
+#
+# ansible-playbook -i buildbot.hosts buildbot.yml
#
-# ansible-playbook -i buildbot.hosts buildbot.yml -e 'botuser=scons'
+# botuser can be overridden from command line:
#
-# Tested with Ansible 1.5.0. Send questions to:
+# ansible-playbook -i hosts buildbot.yml -e 'botuser=sconsy'
+#
+# Tested with Ansible 1.5.0, based on
+# http://scons.org/wiki/InstallingBuildbotSlaves
+# Send questions to:
#
# anatoly techtonik <techtonik@gmail.com>
#
@@ -15,6 +22,7 @@
- botuser: scons
- hgrc: /home/{{ botuser }}/.hgrc
- venv: /home/{{ botuser }}/buildbot-virtualenv
+ - work: /home/{{ botuser }}/buildbot-workdir
tasks:
# --- install requirements ---
@@ -31,10 +39,14 @@
- file: path={{ hgrc }} owner={{ botuser }} state=touch
when: not st.stat.exists
- name: enable mercurial purge extension
- ini_file: dest={{ hgrc }} backup=yes
+ ini_file: dest={{ hgrc }}
section=extensions option=hgext.purge
value=
- # --- install buildbot ---
- name: install buildbot-slave in virtualenv
- pip: name=buildbot-slave virtualenv={{ venv }}
+ pip: name=buildbot-slave virtualenv={{ venv }}
+
+ - name: create buildbot environment
+ command: "{{ venv }}/bin/buildslave create-slave --relocatable
+ {{ work }} buildbot.scons.org:9989 {{ builder }} {{ pass }}
+ creates={{ work }}"