Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2016 00:13
Show Gist options
  • Save anonymous/779e703002f98898be16 to your computer and use it in GitHub Desktop.
Save anonymous/779e703002f98898be16 to your computer and use it in GitHub Desktop.
building go-swagger — for a five year old
#---- run this section just once ----#
mkdir -p ~/go/github.com/go-swagger/go-swagger
cd ~/go/github.com/go-swagger/go-swagger
go get -u github.com/FiloSottile/gvt
go get -u golang.org/x/tools/cmd/...
go get -u github.com/axw/gocov/gocov
go get -u gopkg.in/matm/v1/gocov-html
go get -u -t github.com/cee-dub/go-junit-report
go get -u github.com/aktau/github-release
go get -u github.com/asaskevich/govalidator
go get -u github.com/naoina/denco
go get -u github.com/go-swagger/scan-repo-boundary/makeplans
#--- run this section in every shell session, or add to bashrc/bash_profile ---#
export GOPATH="${HOME}/go"
export GOCOVMODE='count'
export GO15VENDOREXPERIMENT='1'
#--- now build & test ---#
go test $(go list ./... | grep -v vendor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment