-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
27 lines (19 loc) · 917 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
build: update-schema
go build
install: update-schema
go install
go-test: update-schema
go test -cover -v $$(go list ./... | grep -v -E 'vendor' )
postgres-test: update-schema
ENABLE_POSTGRES_TESTS=1 go test -cover -v $$(go list ./... | grep -v -E 'vendor' )
fmt:
find -name '*.go' | grep -v .escape | grep -v vendor | xargs -n 1 go fmt
update-schema:
go-bindata -prefix dao/postgres/schemas/ -o dao/postgres/schema.go -pkg postgres dao/postgres/schemas
go-bindata -prefix dao/ql/schemas/ -o dao/ql/schema.go -pkg ql dao/ql/schemas
start-dev:
WEB_HOOK=http://localhost:10000/api/v1/internal/notification ./escape-inventory
postgres-dev:
(docker kill pg-test || docker rm pg-test || true) && docker run --name pg-test -t --rm -p 5432:5432 postgres
docs-build:
escape run release -f --skip-tests --skip-deploy && cd ../escape-integration-tests && escape run release --skip-build --skip-deploy && cd -