,-.
) \
.--' |
/ /
|_______|
( O O )
{'-(_)-'}
.-{ ^ }-.
/ '.___.' \
/ | o | \
|__| o |__|
(((\_________/)))
\___|___/
jgs.--' | | '--.
\__._| |_.__/
Warden in Go, because why not.
Make a directory to contain go code:
$ mkdir ~/go
From now on, we assume this directory is in /root/go
.
Install Go 1.2.1 or later. For example, install gvm and issue:
$ gvm install go1.2.1
$ gvm use go1.2.1
Extend $GOPATH
and $PATH
:
$ export GOPATH=/root/go:$GOPATH
$ export PATH=$PATH:/root/go/bin
Install godep (used to manage garden's dependencies):
$ go get github.com/kr/godep
Get garden and its dependencies:
$ go get github.com/cloudfoundry-incubator/garden
Build the protocol (if you've changed it):
$ go get code.google.com/p/gogoprotobuf/{proto,protoc-gen-gogo,gogoproto}
$ make
Install ginkgo (used to test garden):
$ go install github.com/onsi/ginkgo/ginkgo
Run the tests (skipping performance measurements):
$ ginkgo -r