2018-09-14 16:46:40 +02:00
|
|
|
DEP_VERSION=0.5.0
|
2018-02-11 17:30:38 +02:00
|
|
|
|
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
|
2018-03-12 22:28:53 +02:00
|
|
|
|
|
|
|
tag:
|
|
|
|
@git tag `grep -P '^\tversion = ' echo.go|cut -f2 -d'"'`
|
|
|
|
@git tag|grep -v ^v
|