Makefile 516 B

1234567891011121314151617
  1. DEP_VERSION=0.4.1
  2. dependency:
  3. curl -fsSL -o ${GOPATH}/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64
  4. chmod +x ${GOPATH}/bin/dep
  5. dep ensure
  6. test:
  7. echo "" > coverage.txt
  8. for d in $(shell go list ./... | grep -v vendor); do \
  9. go test -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
  10. [ -f profile.out ] && cat profile.out >> coverage.txt && rm profile.out; \
  11. done
  12. tag:
  13. @git tag `grep -P '^\tversion = ' echo.go|cut -f2 -d'"'`
  14. @git tag|grep -v ^v