mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
chore: makefile and brew on osx
also removed bandep and other now unused things. closes #823
This commit is contained in:
parent
516c01050c
commit
fbdbff884b
14
Makefile
14
Makefile
@ -1,7 +1,6 @@
|
||||
SOURCE_FILES?=./...
|
||||
TEST_PATTERN?=.
|
||||
TEST_OPTIONS?=
|
||||
OS=$(shell uname -s)
|
||||
|
||||
export PATH := ./bin:$(PATH)
|
||||
|
||||
@ -9,21 +8,10 @@ export PATH := ./bin:$(PATH)
|
||||
setup:
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
|
||||
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
|
||||
curl -sfL https://install.goreleaser.com/github.com/caarlos0/bandep.sh | sh
|
||||
ifeq ($(OS), Darwin)
|
||||
brew install dep
|
||||
else
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
endif
|
||||
curl -sfL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
dep ensure -vendor-only
|
||||
echo "make check" > .git/hooks/pre-commit
|
||||
chmod +x .git/hooks/pre-commit
|
||||
.PHONY: setup
|
||||
|
||||
check:
|
||||
bandep --ban github.com/tj/assert
|
||||
.PHONY: check
|
||||
|
||||
# Run all the tests
|
||||
test:
|
||||
go test $(TEST_OPTIONS) -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=2m
|
||||
|
Loading…
x
Reference in New Issue
Block a user