pkger/Makefile

47 lines
701 B
Makefile
Raw Normal View History

2019-07-30 19:12:21 +03:00
TAGS ?= ""
GO_BIN ?= "go"
2019-08-05 00:13:27 +03:00
install: tidy
cd ./cmd/pkger && $(GO_BIN) install -tags ${TAGS} -v .
2019-07-30 19:12:21 +03:00
make tidy
2019-08-18 19:54:59 +03:00
tidy:
$(GO_BIN) mod tidy
2019-08-05 00:13:27 +03:00
build: tidy
2019-07-30 19:12:21 +03:00
$(GO_BIN) build -v .
make tidy
2019-08-05 00:13:27 +03:00
test: tidy
2019-08-01 19:03:12 +03:00
$(GO_BIN) test -cover -tags ${TAGS} -timeout 5s ./...
2019-07-30 19:12:21 +03:00
make tidy
2019-07-31 00:21:26 +03:00
ci-test:
2019-07-30 19:12:21 +03:00
$(GO_BIN) test -tags ${TAGS} -race ./...
lint:
go get github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run --enable-all
make tidy
update:
rm go.*
$(GO_BIN) mod init
$(GO_BIN) mod tidy
make test
make install
make tidy
2019-07-31 00:21:26 +03:00
release-test:
2019-07-30 19:12:21 +03:00
$(GO_BIN) test -tags ${TAGS} -race ./...
make tidy
release:
$(GO_BIN) get github.com/gobuffalo/release
make tidy
release -y -f version.go --skip-packr
make tidy