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