1
// Copyright 2009 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
5
The files in this directory constitute the continuous builder:
7
godashboard/: An AppEngine that acts as a server
8
builder.sh, buildcontrol.sh: used by the build slaves
9
buildcron.sh: a build loop that can be run regularly via cron
11
If you wish to run a Go builder, please email golang-dev@googlegroups.com
14
To set up a Go builder automatically, run buildcron.sh
15
(you might want to read it first to see what it does).
17
To set up a Go builder by hand:
19
* (Optional) create a new user 'gobuild'
20
* Edit ~gobuild/.bash_profile and add the following:
22
export GOROOT=/gobuild/go
25
export GOBIN=/gobuild/bin
26
export PATH=$PATH:/gobuild/bin
27
export BUILDER=$GOOS-$GOARCH
28
export BUILDHOST=godashboard.appspot.com
30
* Write the key ~gobuild/.gobuildkey
31
You need to get it from someone who knows the key.
32
You may also use a filename of the form .gobuildkey-$BUILDER if you
33
wish to run builders for multiple targets.
35
* Append your username and password googlecode.com credentials from
36
https://code.google.com/hosting/settings
37
to the buildkey file in the format "Username\nPassword\n".
38
(This is for uploading tarballs to the project downloads section,
39
and is an optional step.)
41
* sudo apt-get install bison gcc libc6-dev ed make
44
* hg clone https://go.googlecode.com/hg/ $GOROOT
45
* copy builder.sh and buildcontrol.py to ~gobuild
46
* chmod a+x ./builder.sh ./buildcontrol.py
48
* ../buildcontrol.py next $BUILDER (just to check that things are ok)
50
* ./builder.sh (You probably want to run this in a screen long term.)