-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (49 loc) · 1.63 KB
/
Makefile
File metadata and controls
66 lines (49 loc) · 1.63 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: build build_sia_consumer clean ecs_deploy install integration lint migrate mod run_api run_api_accountant run_consumer run_local run_local_dependencies stop_local_dependencies stop_local test
clean:
rm -rf ./.bin 2>/dev/null || true
rm ./ident 2>/dev/null || true
go fix ./...
go clean -i ./...
build: mod clean
go fmt ./...
CGO_ENABLED=0 go build -v -o ./.bin/ident_api ./cmd/api
CGO_ENABLED=0 go build -v -o ./.bin/ident_api_accountant ./cmd/api_accountant
CGO_ENABLED=0 go build -v -o ./.bin/ident_consumer ./cmd/consumer
CGO_ENABLED=0 go build -v -o ./.bin/ident_migrate ./cmd/migrate
CGO_ENABLED=0 go build -v -o ./.bin/ident_sudo ./cmd/sudo
build_sia_consumer: clean mod
./ops/build_sia_consumer.sh
ecs_deploy:
./ops/ecs_deploy.sh
install: clean
go install ./...
lint:
./ops/lint.sh
migrate: mod
rm -rf ./.bin/ident_migrate 2>/dev/null || true
go build -v -o ./.bin/ident_migrate ./cmd/migrate
./ops/migrate.sh
mod:
go mod init 2>/dev/null || true
go mod tidy
go mod vendor
run_api: build run_local_dependencies
./ops/run_api.sh
run_api_accountant: build run_local_dependencies
./ops/run_api_accountant.sh
run_consumer: build run_local_dependencies
./ops/run_consumer.sh
run_local: build run_local_dependencies
./ops/run_local.sh
run_local_dependencies:
./ops/run_local_dependencies.sh
stop_local_dependencies:
./ops/stop_local_dependencies.sh
stop_local:
./ops/stop_local.sh
test: build
NATS_SERVER_PORT=4223 ./ops/run_local_dependencies.sh
NATS_SERVER_PORT=4223 ./ops/run_unit_tests.sh
integration:
# NATS_SERVER_PORT=4223 ./ops/run_local_dependencies.sh
NATS_SERVER_PORT=4223 ./ops/run_integration_tests.sh