forked from redhat-best-practices-for-k8s/certsuite-claim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 586 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 586 Bytes
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
.PHONY: all \
build \
fmt \
generate-golang-schema \
lint \
tests
# Export GO111MODULE=on to enable project to be built from within GOPATH/src
export GO111MODULE=on
all: generate-golang-schema fmt lint build tests
build:
go build ./...
generate-golang-schema:
rm -f pkg/claim/schema.go
go run cmd/generate/generate.go
fmt:
go fmt ./...
lint:
golint `go list ./... | grep -v vendor`
golangci-lint run
tests:
go test -coverprofile=cover.out ./...
validate-example:
jsonschema -i schemas/claim.example.json schemas/claim.schema.json