-
Notifications
You must be signed in to change notification settings - Fork 93
/
Makefile
39 lines (27 loc) · 874 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
39
.PHONY: node-deps go-deps deps gen check-gen add-license check-license spellcheck shellcheck salus check-valid
ADDLICENSE_IGNORE=-ignore ".github/**/*" -ignore ".idea/**/*"
LICENCE_SCRIPT=addlicense -c "Coinbase, Inc." -l "apache" -v ${ADDLICENSE_IGNORE}
GO_INSTALL=GO111MODULE=off go get
node-deps:
npm install -g @apidevtools/swagger-cli@4.0.2
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