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