File: Makefile

package info (click to toggle)
golang-github-lestrrat-go-strftime 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: makefile: 24
file content (29 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: bench realclean cover viewcover test lint

bench:
	go test -tags bench -benchmem -bench .
	@git checkout go.mod 
	@rm go.sum

realclean:
	rm coverage.out

test:
	go test -v -race ./...

cover:
ifeq ($(strip $(STRFTIME_TAGS)),)
	go test -v -race -coverpkg=./... -coverprofile=coverage.out ./...
else
	go test -v -tags $(STRFTIME_TAGS) -race -coverpkg=./... -coverprofile=coverage.out ./...
endif

viewcover:
	go tool cover -html=coverage.out

lint:
	golangci-lint run ./...

imports:
	goimports -w ./