-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
35 lines (27 loc) · 930 Bytes
/
Makefile
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
30
31
32
33
34
35
.PHONY: all vet lint test test-cov fmt help
all: lint test
vet:
go vet github.com/piprate/json-gold/...
test: vet
go test github.com/piprate/json-gold/...
test-cov: vet
go test github.com/piprate/json-gold/... -race -coverprofile=coverage.txt -covermode=atomic
lint:
golangci-lint run
fmt:
gofmt -s -w .
generate-report:
SKIP_MODE=fail make test
cp ld/earl.jsonld conformance_report.jsonld
help:
@echo ''
@echo ' Targets:'
@echo '--------------------------------------------------'
@echo ' all - Run everything '
@echo ' fmt - Format code '
@echo ' lint - Run golangci-lint '
@echo ' vet - Run vet '
@echo ' test - Run all tests '
@echo ' test-cov - Run all tests + coverage '
@echo '--------------------------------------------------'
@echo ''