2020-01-19 17:30:10 +01:00
|
|
|
TAGS ?= "sqlite"
|
|
|
|
GO_BIN ?= go
|
|
|
|
|
|
|
|
install: deps
|
2020-01-26 16:38:57 +01:00
|
|
|
echo "installing packr v2"
|
|
|
|
packr2
|
|
|
|
$(GO_BIN) install -v ./packr2
|
2020-01-19 17:30:10 +01:00
|
|
|
|
|
|
|
tidy:
|
|
|
|
ifeq ($(GO111MODULE),on)
|
|
|
|
$(GO_BIN) mod tidy
|
|
|
|
else
|
|
|
|
echo skipping go mod tidy
|
|
|
|
endif
|
|
|
|
|
|
|
|
deps:
|
|
|
|
$(GO_BIN) get github.com/gobuffalo/release
|
|
|
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
2020-01-26 16:38:57 +01:00
|
|
|
$(GO_BIN) install -v ./packr2
|
2020-01-19 17:30:10 +01:00
|
|
|
make tidy
|
|
|
|
|
|
|
|
build: deps
|
2020-01-26 16:38:57 +01:00
|
|
|
packr2
|
|
|
|
$(GO_BIN) build -v ./packr2
|
2020-01-19 17:30:10 +01:00
|
|
|
make tidy
|
|
|
|
|
|
|
|
test:
|
2020-01-26 16:38:57 +01:00
|
|
|
packr2
|
2020-01-19 17:30:10 +01:00
|
|
|
$(GO_BIN) test -tags ${TAGS} ./...
|
|
|
|
make tidy
|
|
|
|
|
|
|
|
lint:
|
|
|
|
gometalinter --vendor ./... --deadline=1m --skip=internal
|
|
|
|
|
|
|
|
update:
|
2020-01-26 16:38:57 +01:00
|
|
|
$(GO_BIN) get -u -tags ${TAGS} ./...
|
2020-01-19 17:30:10 +01:00
|
|
|
make tidy
|
|
|
|
make install
|
2020-01-26 16:38:57 +01:00
|
|
|
make test
|
2020-01-19 17:30:10 +01:00
|
|
|
make tidy
|
|
|
|
|
|
|
|
release-test:
|
|
|
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
|
|
|
|
|
|
|
release:
|
|
|
|
release -y -f version.go
|
|
|
|
make tidy
|