dip/vendor/github.com/gobuffalo/envy/Makefile

63 lines
908 B
Makefile
Raw Normal View History

2020-01-26 16:38:57 +01:00
TAGS ?= ""
GO_BIN ?= "go"
GO_ENV ?= "test"
install:
2020-01-26 16:38:57 +01:00
$(GO_BIN) install -tags ${TAGS} -v .
make tidy
2020-01-26 16:38:57 +01:00
tidy:
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
2020-01-26 16:38:57 +01:00
else
echo skipping go mod tidy
endif
2020-01-26 16:38:57 +01:00
deps:
$(GO_BIN) get -tags ${TAGS} -t ./...
make tidy
build:
$(GO_BIN) build -v .
2020-01-26 16:38:57 +01:00
make tidy
test:
2020-01-26 16:38:57 +01:00
$(GO_BIN) test -cover -tags ${TAGS} ./...
make tidy
ci-deps:
$(GO_BIN) get -tags ${TAGS} -t ./...
ci-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
lint:
2020-01-26 16:38:57 +01:00
go get github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run --enable-all
make tidy
update:
ifeq ($(GO111MODULE),on)
2020-01-26 16:38:57 +01:00
rm go.*
$(GO_BIN) mod init
$(GO_BIN) mod tidy
2020-01-26 16:38:57 +01:00
else
$(GO_BIN) get -u -tags ${TAGS}
endif
make test
make install
2020-01-26 16:38:57 +01:00
make tidy
release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
2020-01-26 16:38:57 +01:00
make tidy
release:
2020-01-26 16:38:57 +01:00
$(GO_BIN) get github.com/gobuffalo/release
make tidy
release -y -f version.go --skip-packr
make tidy