github.com/go-chef/chef@v0.30.1/build.sh (about) 1 #!/bin/sh 2 3 # fixes build/test problems 4 if [ ! -d $GOPATH/src/github.com/go-chef/chef ]; then 5 mkdir -p $GOPATH/src/github.com/go-chef 6 ln -s ./ $GOPATH/src/github.com/go-chef/chef 7 fi 8 9 set -ex 10 11 # Grab dependencies for coveralls.io integration 12 go get -u github.com/axw/gocov/gocov 13 go get -u github.com/mattn/goveralls 14 go get -u github.com/ctdk/goiardi/chefcrypto 15 go get -u github.com/ctdk/goiardi/authentication 16 go get -u github.com/davecgh/go-spew/spew 17 go get -u github.com/smartystreets/goconvey/convey 18 19 # go test -coverprofile=coverage dependency 20 go get -u golang.org/x/tools/cmd/cover 21 22 # Overwrite the coverage file 23 go test -coverprofile=coverage 24 25 # Goveralls 26 go tool cover -func=coverage