forked from coinbase/mesh-specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 791 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
36
37
38
.PHONY: node-deps go-deps deps gen check-gen add-license check-license spellcheck shellcheck salus check-valid
LICENCE_SCRIPT=addlicense -c "Coinbase, Inc." -l "apache" -v
GO_INSTALL=GO111MODULE=off go get
node-deps:
npm install -g @apidevtools/[email protected]
go-deps:
${GO_INSTALL} github.com/google/addlicense
${GO_INSTALL} github.com/client9/misspell/cmd/misspell
deps: node-deps go-deps
gen:
./codegen.sh;
check-valid:
swagger-cli validate api.yaml
check-gen: | gen
git diff --exit-code
add-license:
${LICENCE_SCRIPT} .
check-license:
${LICENCE_SCRIPT} -check .
spellcheck:
misspell -error .
shellcheck:
shellcheck codegen.sh
salus:
docker run --rm -t -v ${PWD}:/home/repo coinbase/salus
release: check-valid shellcheck spellcheck check-gen check-license salus