Skip to content

Instantly share code, notes, and snippets.

@nathany
Last active December 22, 2015 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathany/6402146 to your computer and use it in GitHub Desktop.
Save nathany/6402146 to your computer and use it in GitHub Desktop.
CI setup for Go
go get -d -v ./...
# get test dependencies
# go get -t will make this unnecessary in go 1.2 <https://codereview.appspot.com/12566046>
# go get launchpad.net/gocheck
# go get github.com/axw/gocov/gocov
# go get github.com/mattn/goveralls
go build -v ./...
go test -v ./...
# or instead of go test, use https://github.com/mattn/goveralls
# goveralls -v -service drone.io $COVERALLS_TOKEN
@nathany
Copy link
Author

nathany commented Sep 1, 2013

Dcoumentation

http://about.travis-ci.org/docs/user/languages/go/
http://docs.drone.io/golang.html
http://devcenter.wercker.com/articles/languages/go.html

I'm not sure the merit in not installing dependencies with go get (-d) and then building them after. That's what Travis does. Maybe it saves a few cycles?

@nathany
Copy link
Author

nathany commented Sep 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment