-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
executable file
·76 lines (49 loc) · 1.39 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
help:
less help-msg
restart: start
start: manage-conf build stop run
test: manage-test-conf build stop run-on-travis sleep run-test
fuzz:
python3 test/fuzz.py
html:
python3 transform_md_to_html.py
# START
manage-conf:
./build-tools/cp_conf_if_not_exists.sh
cp dru.conf .env
python3 build-tools/manage-env.py
build:
docker compose build
stop:
docker compose down -v
run:
./build-tools/docker-compose-up.sh -d
# TEST
sleep:
sleep 30
manage-test-conf:
cp dru.test.conf .env
python3 build-tools/manage-env.py
run-on-travis:
docker compose up -d
run-test:
python3 -m unittest discover test
# UTILS
django-shell:
docker compose exec web python3 manage.py shell
bash:
docker compose exec web bash
logs:
docker compose logs -f
logs-celery:
docker compose logs -f celery
# STATIC CODE ANALYSIS
static_test: test-static-db_maintainer test-static-web_api test-static_tests test-static-usage_examples
test-static-db_maintainer:
docker run -v $(shell pwd):/code -ti puchtaw/pylinter:latest database_maintainer/src
test-static-web_api:
docker run -v $(shell pwd):/code -ti puchtaw/pylinter:latest web_api/src
test-static_tests:
docker run -v $(shell pwd):/code -ti puchtaw/pylinter:latest tests || true ## don`t fail for now - TO BE FIXED
test-static-usage_examples:
docker run -v $(shell pwd):/code -ti puchtaw/pylinter:latest usage_examples || true ## don`t fail for now - TO BE FIXED