pkger/Makefile

55 lines
861 B
Makefile
Raw Permalink Normal View History

2019-07-30 19:12:21 +03:00
TAGS ?= ""
GO_BIN ?= "go"
2019-09-21 19:51:29 +03:00
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-09-21 19:51:29 +03:00
run: install
cd ./examples/app; pkger
2019-08-18 19:54:59 +03:00
tidy:
2019-08-30 00:12:32 +03:00
$(GO_BIN) mod tidy -v
2019-08-18 19:54:59 +03:00
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
$(GO_BIN) test -count 1 -cover -tags ${TAGS} -timeout 1m ./...
2019-07-30 19:12:21 +03:00
make tidy
2019-09-01 00:00:24 +03:00
cov:
$(GO_BIN) test -coverprofile cover.out -tags ${TAGS} ./...
go tool cover -html cover.out
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