2018-02-11 17:30:38 +02:00
|
|
|
DEP_VERSION=0.4.1
|
|
|
|
|
2017-06-07 20:10:09 +02:00
|
|
|
dependency:
|
2018-02-11 17:30:38 +02:00
|
|
|
curl -fsSL -o ${GOPATH}/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64
|
|
|
|
chmod +x ${GOPATH}/bin/dep
|
2017-09-21 21:45:27 +02:00
|
|
|
dep ensure
|
2017-06-07 20:10:09 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
echo "" > coverage.txt
|
|
|
|
for d in $(shell go list ./... | grep -v vendor); do \
|
2017-06-29 04:08:45 +02:00
|
|
|
go test -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
|
2017-06-07 20:10:09 +02:00
|
|
|
[ -f profile.out ] && cat profile.out >> coverage.txt && rm profile.out; \
|
|
|
|
done
|