mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-05 23:28:42 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
18 lines
No EOL
415 B
Makefile
18 lines
No EOL
415 B
Makefile
GOCMD=GO111MODULE=on go
|
|
|
|
linters-install:
|
|
@golangci-lint --version >/dev/null 2>&1 || { \
|
|
echo "installing linting tools..."; \
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
|
|
}
|
|
|
|
lint: linters-install
|
|
$(PWD)/bin/golangci-lint run
|
|
|
|
test:
|
|
$(GOCMD) test -cover -race ./...
|
|
|
|
bench:
|
|
$(GOCMD) test -bench=. -benchmem ./...
|
|
|
|
.PHONY: test lint linters-install |