Makefile 410 B

12345678910111213141516171819
  1. BRANCH=`git rev-parse --abbrev-ref HEAD`
  2. COMMIT=`git rev-parse --short HEAD`
  3. GOLDFLAGS="-X main.branch $(BRANCH) -X main.commit $(COMMIT)"
  4. default: build
  5. race:
  6. @go test -v -race -test.run="TestSimulate_(100op|1000op)"
  7. # go get github.com/kisielk/errcheck
  8. errcheck:
  9. @errcheck -ignorepkg=bytes -ignore=os:Remove github.com/boltdb/bolt
  10. test:
  11. @go test -v -cover .
  12. @go test -v ./cmd/bolt
  13. .PHONY: fmt test