2010-09-12 18:46:17 -06:00
|
|
|
// Copyright 2010 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.
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
2012-10-30 14:38:01 -06:00
|
|
|
Go Builder is a continuous build client for the Go project.
|
2010-09-12 18:46:17 -06:00
|
|
|
It integrates with the Go Dashboard AppEngine application.
|
|
|
|
|
|
|
|
Go Builder is intended to run continuously as a background process.
|
|
|
|
|
2012-10-30 14:38:01 -06:00
|
|
|
It periodically pulls updates from the Go Mercurial repository.
|
2010-09-12 18:46:17 -06:00
|
|
|
|
|
|
|
When a newer revision is found, Go Builder creates a clone of the repository,
|
2012-10-30 14:38:01 -06:00
|
|
|
runs all.bash, and reports build success or failure to the Go Dashboard.
|
2010-09-12 18:46:17 -06:00
|
|
|
|
|
|
|
For a release revision (a change description that matches "release.YYYY-MM-DD"),
|
|
|
|
Go Builder will create a tar.gz archive of the GOROOT and deliver it to the
|
|
|
|
Go Google Code project's downloads section.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
gobuilder goos-goarch...
|
|
|
|
|
2012-10-30 14:38:01 -06:00
|
|
|
Several goos-goarch combinations can be provided, and the builder will
|
2010-09-12 18:46:17 -06:00
|
|
|
build them in serial.
|
|
|
|
|
|
|
|
Optional flags:
|
|
|
|
|
|
|
|
-dashboard="godashboard.appspot.com": Go Dashboard Host
|
|
|
|
The location of the Go Dashboard application to which Go Builder will
|
|
|
|
report its results.
|
|
|
|
|
|
|
|
-release: Build and deliver binary release archive
|
|
|
|
|
2011-03-02 20:41:09 -07:00
|
|
|
-rev=N: Build revision N and exit
|
2011-03-07 12:00:57 -07:00
|
|
|
|
2011-03-02 20:41:09 -07:00
|
|
|
-cmd="./all.bash": Build command (specify absolute or relative to go/src)
|
|
|
|
|
|
|
|
-v: Verbose logging
|
|
|
|
|
|
|
|
-external: External package builder mode (will not report Go build
|
2011-05-12 09:21:34 -06:00
|
|
|
state to dashboard or issue releases)
|
2011-03-02 20:41:09 -07:00
|
|
|
|
2011-04-12 22:49:56 -06:00
|
|
|
The key file should be located at $HOME/.gobuildkey or, for a builder-specific
|
|
|
|
key, $HOME/.gobuildkey-$BUILDER (eg, $HOME/.gobuildkey-linux-amd64).
|
2010-09-12 18:46:17 -06:00
|
|
|
|
|
|
|
The build key file is a text file of the format:
|
|
|
|
|
|
|
|
godashboard-key
|
|
|
|
googlecode-username
|
|
|
|
googlecode-password
|
|
|
|
|
|
|
|
If the Google Code credentials are not provided the archival step
|
|
|
|
will be skipped.
|
|
|
|
|
|
|
|
*/
|
|
|
|
package documentation
|