2016-02-12 18:02:16 +00:00
|
|
|
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
|
|
COMMIT=`git rev-parse --short HEAD`
|
|
|
|
GOLDFLAGS="-X main.branch $(BRANCH) -X main.commit $(COMMIT)"
|
|
|
|
|
|
|
|
default: build
|
|
|
|
|
2016-03-22 06:58:46 +00:00
|
|
|
race:
|
|
|
|
@go test -v -race -test.run="TestSimulate_(100op|1000op)"
|
2016-02-12 18:02:16 +00:00
|
|
|
|
|
|
|
# go get github.com/kisielk/errcheck
|
|
|
|
errcheck:
|
2016-03-22 06:58:46 +00:00
|
|
|
@errcheck -ignorepkg=bytes -ignore=os:Remove github.com/boltdb/bolt
|
2016-02-12 18:02:16 +00:00
|
|
|
|
2016-03-22 06:58:46 +00:00
|
|
|
test:
|
|
|
|
@go test -v -cover .
|
|
|
|
@go test -v ./cmd/bolt
|
2016-02-12 18:02:16 +00:00
|
|
|
|
2016-03-22 06:58:46 +00:00
|
|
|
.PHONY: fmt test
|