~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to misc/dashboard/README

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-04-20 17:36:48 UTC
  • Revision ID: james.westby@ubuntu.com-20110420173648-ifergoxyrm832trd
Tags: upstream-2011.03.07.1
Import upstream version 2011.03.07.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
 
 
5
The files in this directory constitute the continuous builder:
 
6
 
 
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
 
10
 
 
11
If you wish to run a Go builder, please email golang-dev@googlegroups.com
 
12
 
 
13
 
 
14
To set up a Go builder automatically, run buildcron.sh
 
15
(you might want to read it first to see what it does).
 
16
 
 
17
To set up a Go builder by hand:
 
18
 
 
19
* (Optional) create a new user 'gobuild'
 
20
* Edit ~gobuild/.bash_profile and add the following:
 
21
 
 
22
export GOROOT=/gobuild/go
 
23
export GOARCH=XXX
 
24
export GOOS=XXX
 
25
export GOBIN=/gobuild/bin
 
26
export PATH=$PATH:/gobuild/bin
 
27
export BUILDER=$GOOS-$GOARCH
 
28
export BUILDHOST=godashboard.appspot.com
 
29
 
 
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.
 
34
 
 
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.)
 
40
 
 
41
* sudo apt-get install bison gcc libc6-dev ed make
 
42
* cd ~gobuild
 
43
* mkdir bin
 
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
 
47
* cd go
 
48
* ../buildcontrol.py next $BUILDER  (just to check that things are ok)
 
49
* cd ..
 
50
* ./builder.sh (You probably want to run this in a screen long term.)