-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
executable file
·58 lines (49 loc) · 1.72 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
56
57
58
run:
@echo "*********************************\n"
@echo "Lifting up the whole environment!\n"
@echo "*********************************\n"
@docker-compose up
quiet-run:
@echo "*********************************\n"
@echo "Quietly lifting up the whole environment!\n"
@echo "*********************************\n"
@docker-compose up --detach
build:
@echo "*********************************\n"
@echo "Building static files!\n"
@echo "*********************************\n"
@docker-compose exec npm run build
cy-test:
@echo "*************************\n"
@echo "Running Cypress tests!\n"
@echo "*************************\n"
@docker-compose exec front npx cypress run
test:
@echo "*************************\n"
@echo "Running Cypress tests!\n"
@echo "*************************\n"
@docker-compose exec front npm run unit
down:
@echo "******************************\n"
@echo "Dropping down the environment!\n"
@echo "******************************\n"
@docker-compose down
ps:
@echo "************************\n"
@echo "Listing running services\n"
@echo "************************\n"
@docker-compose ps
rm-network:
@echo "**********************************\n"
@echo "Removing all networks!\n"
@echo "**********************************\n"
@docker network rm $(sudo docker network ls -q)
rm-volume:
@echo "*********************\n"
@echo "Removing all volumes!\n"
@echo "*********************\n"
@docker volume rm $(sudo docker volume ls -q)
.PHONY: no_targets__ list
no_targets__:
list:
@sh -c "$(MAKE) -p no_targets__ -prRn -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -F':' '/^[a-zA-Z0-9][^\$$#\/\\t=]*:([^=]|$$)/ {split(\$$1,A,/ /);for(i in A)print A[i]}' | grep -v '__\$$' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'"