From e58531f8076a06c5fb13e845fb8361ba3dbba09a Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Wed, 5 Mar 2014 02:08:12 +0300 Subject: Add Ansible playbook to setup buildbot instance more easily --- testing/README.md | 5 +++++ testing/buildbot.yml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 testing/README.md create mode 100644 testing/buildbot.yml (limited to 'testing') 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= -- cgit v1.2.1