-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (17 loc) · 747 Bytes
/
Makefile
File metadata and controls
19 lines (17 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
VERSION := $(shell git describe --tags 2>/dev/null)
LDFLAGS = -X main.version=$(VERSION)
build:
rm -rf bindata
test -z $(shell gofmt -l ./)
go get -u github.com/shuLhan/go-bindata/...
go install github.com/shuLhan/go-bindata/v4/cmd/go-bindata@master
$$GOPATH/bin/go-bindata -pkg bindata -o bindata/bindata.go etc/*
go get ./...
go test -coverprofile=coverage.out -covermode=atomic -race $$GOPATH/src/github.com/mpchadwick/dbanon/src
go build -ldflags "$(LDFLAGS)" -o dbanon main.go
go test $$GOPATH/src/github.com/mpchadwick/dbanon/integration
rm -rf bindata
bench:
$$GOPATH/bin/go-bindata -pkg bindata -o bindata/bindata.go etc/*
go test -run=XXX -bench=. -benchtime=20s $$GOPATH/src/github.com/mpchadwick/dbanon/src
rm -rf bindata