scripts: add build, cover and update test

This adds a build script that attempts to be as user friendly as
possible: if they have already set $GOPATH and/or $GOBIN, use those
environment variables. If not, create a gopath for them in this
directory. This should facilitate both `go get` and `git clone` usage.

The `test` script is updated, and the new `cover` script facilitates
easy coverage generation for the repo's constituent packages by setting
the PKG environment variable.
This commit is contained in:
Jonathan Boulle
2014-09-08 23:06:03 -07:00
parent 4f330a9ba2
commit 491362f5db
4 changed files with 104 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/coverage
/gopath
/go-bindata
/machine*