This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
79 lines (55 loc) · 1.73 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f
# force use of Bash
SHELL := /bin/bash
INTERACTIVE=true
default: dev
test-backoffice-backend:
cd backend/ \
&& make test-api
test-backoffice-frontend:
cd ./frontend/ \
&& npm test
test-backoffice: test-backoffice-backend test-backoffice-frontend
test-mast:
cd daemon/ \
&& make -f help-me.mk test-mast
test-frontoffice-backend:
cd daemon/ \
&& make -f help-me.mk test-backend
test-frontoffice-frontend:
cd daemon/ \
&& make -f help-me.mk test-frontend-unittest
test-frontoffice-end-to-end:
cd daemon/ \
&& make -f help-me.mk test-frontend-end-to-end
test-frontoffice: test-mast test-frontoffice-backend test-frontoffice-frontend test-frontoffice-end-to-end
tests: test-backoffice test-frontoffice
connect:
ssh -F $$HOME/.ssh/config coaxis@opt-forward cd coaxisopt/ -vvv
tag-as-feature:
cd daemon/frontend \
&& bumped release feature
tag-as-patch:
cd daemon/frontend \
&& bumped release patch
release:
cd deploy/ \
&& ./release.sh "$$(git describe --abbrev=0 --tags)"
prepare-env:
docker-compose build # create the containers images
docker-compose up -d # start project
first-run: prepare-env
docker exec -it coaxisopt_backend bash -c './manage.py createsuperuser'
reset-test-env:
docker network prune --force
where-is-front-office:
frontoffice_ip="$$(docker inspect coaxisopt_daemon_1 --format "{{ json .NetworkSettings.Networks.coaxisopt_default.IPAddress }}" | python -m json.tool | sed -s 's/"//g')" \
&& echo "Front-office → http://$$frontoffice_ip/"
echo
dev: reset-test-env prepare-env where-is-front-office
echo "Back-office → http://localhost/"
dev-frontoffice:
cd daemon/ \
&& make -f help-me.mk dev
restart-flask:
docker exec coaxisopt_daemon bash -c 'supervisorctl restart flask'