-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
55 lines (47 loc) · 2.29 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.DEFAULT_GOAL := run
.PHONY: tidy shiny build run build-monolith run-monolith run-feature-tests install-godog
tidy:
@echo Tidying all mod files
@cd accounting & go mod tidy & cd .. & echo accounting is tidy
@cd consumer & go mod tidy & cd .. & echo consumer is tidy
@cd delivery & go mod tidy & cd .. & echo delivery is tidy
@cd kitchen & go mod tidy & cd .. & echo kitchen is tidy
@cd order & go mod tidy & cd .. & echo order is tidy
@cd order-history & go mod tidy & cd .. & echo order-history is tidy
@cd restaurant & go mod tidy & cd .. & echo restaurant is tidy
@cd serviceapis & go mod tidy & cd .. & echo serviceapis is tidy
@cd shared-go & go mod tidy & cd .. & echo shared-go is tidy
@cd customer-web & go mod tidy & cd .. & echo customer-web is tidy
@cd store-web & go mod tidy & cd .. & echo store-web is tidy
@cd monolith & go mod tidy & cd .. & echo monolith is tidy
shiny:
@echo Updating all dependencies
@cd accounting & go get -u ./... & cd .. & echo accounting has shiny new packages
@cd consumer & go get -u ./... & cd .. & echo consumer has shiny new packages
@cd delivery & go get -u ./... & cd .. & echo delivery has shiny new packages
@cd kitchen & go get -u ./... & cd .. & echo kitchen has shiny new packages
@cd order & go get -u ./... & cd .. & echo order has shiny new packages
@cd order-history & go get -u ./... & cd .. & echo order-history has shiny new packages
@cd restaurant & go get -u ./... & cd .. & echo restaurant has shiny new packages
@cd serviceapis & go get -u ./... & cd .. & echo serviceapis has shiny new packages
@cd shared-go & go get -u ./... & cd .. & echo shared-go has shiny new packages
@cd customer-web & go get -u ./... & cd .. & echo customer-web has shiny new packages
@cd store-web & go get -u ./... & cd .. & echo store-web has shiny new packages
@cd monolith & go get -u ./... & cd .. & echo monolith has shiny new packages
build:
@docker-compose build
run:
@docker-compose up
build-monolith:
@docker-compose -f docker-compose-monolith.yml build
run-monolith:
@docker-compose -p monolith -f docker-compose-monolith.yml up
run-feature-tests:
@cd accounting & godog
@cd consumer & godog
@cd delivery & godog
@cd kitchen & godog
@cd order & godog
@cd restaurant & godog
install-godog:
@go install github.com/cucumber/godog/cmd/[email protected]