37 lines
542 B
Makefile
37 lines
542 B
Makefile
TAGS ?= "sqlite"
|
|
GO_BIN ?= go
|
|
|
|
install: deps
|
|
packr
|
|
$(GO_BIN) install -v .
|
|
|
|
deps:
|
|
$(GO_BIN) get github.com/gobuffalo/packr/packr
|
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
|
|
|
build: deps
|
|
packr
|
|
$(GO_BIN) build -v .
|
|
|
|
test:
|
|
packr
|
|
$(GO_BIN) test -tags ${TAGS} ./...
|
|
|
|
ci-test: deps
|
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
|
|
|
lint:
|
|
gometalinter --vendor ./... --deadline=1m --skip=internal
|
|
|
|
update:
|
|
$(GO_BIN) get -u
|
|
$(GO_BIN) mod tidy
|
|
packr
|
|
make test
|
|
|
|
release-test:
|
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
|
|
|
release:
|
|
release -y -f version.go
|