-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (49 loc) · 1.31 KB
/
Makefile
File metadata and controls
68 lines (49 loc) · 1.31 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
67
68
.PHONY: build clean ecs_deploy install integration lint migrate mod run_api run_consumer run_local run_local_dependencies stop_local_dependencies stop_local test
clean:
rm -rf ./.bin 2>/dev/null || true
rm ./vault 2>/dev/null || true
go fix ./...
go clean -i ./...
build: clean mod ensure_dependencies
go fmt ./...
go build -v -o ./.bin/vault_api ./cmd/api
go build -v -o ./.bin/vault_consumer ./cmd/consumer
go build -v -o ./.bin/vault_migrate ./cmd/migrate
ecs_deploy:
./ops/ecs_deploy.sh
ensure_dependencies: mod
./ops/ensure_dependencies.sh
install: clean
go install ./...
lint:
./ops/lint.sh
migrate: mod
rm -rf ./.bin/vault_migrate 2>/dev/null || true
go build -v -o ./.bin/vault_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_consumer: build run_consumer
./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
./ops/run_local_unit_tests.sh
test_local: build
./ops/run_local_unit_tests.sh
integration:
./ops/run_integration_tests.sh
debug:
./ops/run_debug.sh
stop_debug:
./ops/stop_debug.sh