diff options
author | Andrew Wilkins <axwalk@gmail.com> | 2015-04-08 01:41:46 +0000 |
---|---|---|
committer | Andrew Wilkins <axwalk@gmail.com> | 2015-04-08 01:41:46 +0000 |
commit | 7604b5e7cab6bd3c9832243fc4f1c69ac61abd63 (patch) | |
tree | 97ed6015ecbd357347931f84e847bf191a58a65a /llgo | |
parent | 22ec5193c8bf4cda8d3e0e25e170877eece8d783 (diff) |
[llgo] add buildbot-slave config
Summary:
This patch adds the configuration used to deploy
the llgo-builder buildbot slave. The builder is
deployed to Google Compute Engine using Juju.
Reviewers: pcc
Reviewed By: pcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8854
Diffstat (limited to 'llgo')
-rw-r--r-- | llgo/buildslave-config.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llgo/buildslave-config.yaml b/llgo/buildslave-config.yaml new file mode 100644 index 00000000000..76e2403765d --- /dev/null +++ b/llgo/buildslave-config.yaml @@ -0,0 +1,31 @@ +# This file contains llgo's configuration for the buildbot-slave Juju charm. +# +# The slave is deployed with the following command in a Juju environment: +# juju deploy cs:~axwalk/buildbot-slave --config buildslave-config.yaml +# +# The charm generates a random password on first run, in the file +# /srv/buildbot/password. If the password is regenerated, it must +# be updated in the buildbot master. +# +buildbot-slave: + name: llgo-builder + master: lab.llvm.org:9990 + admin-info: Andrew Wilkins <axwalk@gmail.com> + apt-packages: subversion git cmake gcc g++ gccgo python-dev + pip-versions: sqlalchemy==0.7.9 buildbot==0.8.5 buildbot_slave==0.8.5 twisted==12.0.0 + post-install: | + #!/bin/bash + # + # Fetch, build and install Ninja. + rm -fr /tmp/ninja + cd /tmp && git clone git://github.com/martine/ninja.git + cd /tmp/ninja && ./configure.py --bootstrap + cp /tmp/ninja/ninja /usr/local/bin + # Fetch and unpack Go. + cd /tmp && wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz + sha1sum <<EOF + 5020af94b52b65cc9b6f11d50a67e4bae07b0aff go1.4.2.linux-amd64.tar.gz + EOF + cd /usr/local && tar xzf /tmp/go1.4.2.linux-amd64.tar.gz + ln -f -s /usr/local/go/bin/go /usr/local/bin/go + |