Skip to content

Commit

Permalink
makefile: use "./..." everywhere + use coverpkg for coverage profiles (
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte authored Feb 11, 2021
1 parent 836af81 commit 1320725
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ build-release:
go build -o bin/ruleguard -ldflags "-X 'github.com/quasilyte/go-ruleguard/analyzer.Version=$(RELEASE)'" ./cmd/ruleguard

test:
go test -count 3 -coverprofile=coverage.txt -covermode=atomic -race ./analyzer/...
go test -count 3 -race ./ruleguard/...
go test -count 3 -race ./internal/...
go test -count 3 -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -race ./...
cd rules && go test -v .
@echo "everything is OK"

Expand All @@ -30,11 +28,9 @@ test-release:

lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH_DIR)/bin v1.30.0
$(GOPATH_DIR)/bin/golangci-lint run ./analyzer/...
$(GOPATH_DIR)/bin/golangci-lint run ./ruleguard/...
$(GOPATH_DIR)/bin/golangci-lint run ./internal/...
$(GOPATH_DIR)/bin/golangci-lint run ./...
go build -o go-ruleguard ./cmd/ruleguard
./go-ruleguard -rules rules.go ./analyzer/... ./ruleguard/... ./internal/...
./go-ruleguard -rules rules.go ./...
@echo "everything is OK"

.PHONY: lint test test-master build build-release

0 comments on commit 1320725

Please sign in to comment.