summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-05 02:08:12 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-03-05 02:08:12 +0300
commite58531f8076a06c5fb13e845fb8361ba3dbba09a (patch)
treee885b897af2fadd45c97f30645292fd14c38ce9e /testing
parent822e6b71690fde35d73b8075f03f1fac3244918f (diff)
downloadscons-e58531f8076a06c5fb13e845fb8361ba3dbba09a.tar.gz
Add Ansible playbook to setup buildbot instance more easily
Diffstat (limited to 'testing')
-rw-r--r--testing/README.md5
-rw-r--r--testing/buildbot.yml20
2 files changed, 25 insertions, 0 deletions
diff --git a/testing/README.md b/testing/README.md
new file mode 100644
index 00000000..9da8ff80
--- /dev/null
+++ b/testing/README.md
@@ -0,0 +1,5 @@
+Here lie various files related to SCons that
+can not find the place in other directories:
+
+ buildbot.yml - Ansible playbook to set up
+ buildbot for running tests
diff --git a/testing/buildbot.yml b/testing/buildbot.yml
new file mode 100644
index 00000000..85902151
--- /dev/null
+++ b/testing/buildbot.yml
@@ -0,0 +1,20 @@
+# Ansible playbook to setup buildbot instance
+# http://scons.org/wiki/InstallingBuildbotSlaves
+---
+# host is overridable with --extra-vars 'host=address'
+- hosts: "{{ host | default('localhost') }}"
+ vars:
+ - botuser: scons2
+ - hgrc: /home/{{ botuser }}/.hgrc
+
+ tasks:
+ # --- install requirements ---
+ - name: ubuntu/debian - make sure mercurial is installed
+ apt: pkg=mercurial
+
+ - name: create .hgrc if necessary
+ command: touch {{ hgrc }} creates={{ hgrc }}
+ - name: enable mercurial purge extension
+ ini_file: dest={{ hgrc }} backup=yes
+ section=extensions option=hgext.purge
+ value=