forked from rallyhealth/conftest-policy-packs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 807 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
#!/usr/bin/env make
.PHONY: install
install:
brew install conftest gcc gcc@5 golang jq pre-commit
sh scripts/ci-go-deps.sh
pre-commit install --install-hooks
.PHONY: update
update:
brew upgrade conftest golang jq pre-commit
go install github.com/plexsystems/konstraint@latest
go install sigs.k8s.io/mdtoc@latest
pre-commit autoupdate
# Keep an eye on https://github.com/open-policy-agent/conftest/issues/518 for when coverage is supported
.PHONY: test
test:
conftest verify --data data/ --policy policies/
.PHONY: fmt
fmt:
conftest fmt policies/
.PHONY: docs
docs:
$$(go env GOPATH)/bin/konstraint doc --output docs/policies.md --url https://github.com/RallyHealth/conftest-policy-packs
$$(go env GOPATH)/bin/mdtoc --inplace README.md
$$(go env GOPATH)/bin/mdtoc --inplace CONTRIBUTING.md