-
Notifications
You must be signed in to change notification settings - Fork 72
/
Makefile
42 lines (27 loc) · 1.06 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
CONTEXTS = $(shell find ecommerce -maxdepth 1 -mindepth 1 -type d -exec basename {} \;)
$(addprefix install-, $(CONTEXTS)):
@make -C ecommerce/$(subst install-,,$@) install
$(addprefix test-, $(CONTEXTS)):
@make -C ecommerce/$(subst test-,,$@) test
$(addprefix mutate-, $(CONTEXTS)):
@make -C ecommerce/$(subst mutate-,,$@) mutate
install-rails:
@make -C rails_application install
test-rails:
@make -C rails_application test
mutate-rails:
@make -C rails_application mutate
install-infra:
@make -C infra install
test-infra:
@make -C infra test
mutate-infra:
@make -C infra mutate
dev:
@make -C rails_application dev
install: install-infra install-rails $(addprefix install-, $(CONTEXTS)) ## Install all dependencies
test: test-infra test-rails $(addprefix test-, $(CONTEXTS)) ## Run all unit tests
mutate: mutate-infra mutate-rails $(addprefix mutate-, $(CONTEXTS)) ## Run all mutation coverage
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help