pkger/Makefile

62 lines
909 B
Makefile
Raw Normal View History

2019-07-30 19:12:21 +03:00
TAGS ?= ""
GO_BIN ?= "go"
2019-07-31 00:21:26 +03:00
install:
cd ./cmd/pkger && $(GO_BIN) install -tags ${TAGS} -v .
2019-07-30 19:12:21 +03:00
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
2019-07-31 00:21:26 +03:00
build:
2019-07-30 19:12:21 +03:00
$(GO_BIN) build -v .
make tidy
2019-07-31 00:21:26 +03:00
test:
2019-07-30 19:12:21 +03:00
$(GO_BIN) test -cover -tags ${TAGS} ./...
make tidy
2019-07-31 00:21:26 +03:00
ci-deps:
2019-07-30 19:12:21 +03:00
$(GO_BIN) get -tags ${TAGS} -t ./...
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:
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
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