File: build.sh

package info (click to toggle)
golang-github-go-chef-chef 0.0.1%2Bgit20161023.60.deb8c38-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 332 kB
  • ctags: 290
  • sloc: sh: 14; makefile: 7
file content (26 lines) | stat: -rwxr-xr-x 672 bytes parent folder | download | duplicates (3)
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