Skip to content

Commit a73b6e0

Browse files
Merge pull request #7 from kohkimakimoto/dev
update Makefile
2 parents 174a647 + 98c66ef commit a73b6e0

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

Makefile

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ setup: ## Setup development environment
2525
@echo "==> Setting up development environment..."
2626
@mkdir -p $(CURDIR)/.dev/go-tools
2727
@export GOPATH=$(CURDIR)/.dev/go-tools && \
28-
go install honnef.co/go/tools/cmd/staticcheck@latest && \
2928
go install github.com/axw/gocov/gocov@latest && \
3029
go install github.com/matm/gocov-html/cmd/gocov-html@latest
3130
@export GOPATH=$(CURDIR)/.dev/go-tools && go clean -modcache && rm -rf $(CURDIR)/.dev/go-tools/pkg
@@ -42,30 +41,26 @@ clean: ## Clean up development environment
4241
format: ## Format source code
4342
@go fmt ./...
4443

45-
.PHONY: lint
46-
lint: ## Lint source code
47-
@staticcheck ./...
48-
4944
.PHONY: test
5045
test: ## Run tests
5146
@go test -race -timeout 30m ./...
5247

53-
.PHONY: test/short
54-
test/short: ## Run short tests
48+
.PHONY: test-short
49+
test-short: ## Run short tests
5550
@go test -short -race -timeout 30m ./...
5651

57-
.PHONY: test/verbos
58-
test/verbose: ## Run tests with verbose outputting
52+
.PHONY: test-verbose
53+
test-verbose: ## Run tests with verbose outputting
5954
@go test -race -timeout 30m -v ./...
6055

61-
.PHONY: test/cover
62-
test/cover: ## Run tests with coverage report
56+
.PHONY: test-cover
57+
test-cover: ## Run tests with coverage report
6358
@mkdir -p $(CURDIR)/.dev/test
6459
@go test -race -coverpkg=./... -coverprofile=$(CURDIR)/.dev/test/coverage.out ./...
6560
@gocov convert $(CURDIR)/.dev/test/coverage.out | gocov-html > $(CURDIR)/.dev/test/coverage.html
6661

67-
.PHONY: open/coverage
68-
open/coverage: ## Open coverage report
62+
.PHONY: test-cover-open
63+
test-cover-open: ## Open coverage report in browser
6964
@open $(CURDIR)/.dev/test/coverage.html
7065

7166

0 commit comments

Comments
 (0)