forked from mirror/pkger
62 lines
921 B
Makefile
62 lines
921 B
Makefile
TAGS ?= ""
|
|
GO_BIN ?= "go"
|
|
|
|
install:
|
|
cd ./cmd/pkger && $(GO_BIN) install -tags ${TAGS} -v .
|
|
make tidy
|
|
|
|
tidy:
|
|
ifeq ($(GO111MODULE),on)
|
|
$(GO_BIN) mod tidy
|
|
else
|
|
echo skipping go mod tidy
|
|
endif
|
|
|
|
deps:
|
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
|
make tidy
|
|
|
|
build:
|
|
$(GO_BIN) build -v .
|
|
make tidy
|
|
|
|
test:
|
|
$(GO_BIN) test -cover -tags ${TAGS} -timeout 5s ./...
|
|
make tidy
|
|
|
|
ci-deps:
|
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
|
|
|
ci-test:
|
|
$(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:
|
|
ifeq ($(GO111MODULE),on)
|
|
rm go.*
|
|
$(GO_BIN) mod init
|
|
$(GO_BIN) mod tidy
|
|
else
|
|
$(GO_BIN) get -u -tags ${TAGS}
|
|
endif
|
|
make test
|
|
make install
|
|
make tidy
|
|
|
|
release-test:
|
|
$(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
|
|
|
|
|
|
|