-
Notifications
You must be signed in to change notification settings - Fork 44
/
Makefile
38 lines (26 loc) · 991 Bytes
/
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
# Test commands
test_backend:
docker-compose run --rm backend python3 manage.py test
docker-compose run --rm backend pylint apps
test_frontend:
docker-compose run --rm frontend node_modules/.bin/ng test --single-run
test_all: test_backend test_frontend
# Lint commands
lint_backend:
docker-compose run --rm backend /bin/bash -c \
"echo -e '\n\nRunning pycodestyle...';\
pycodestyle --exclude='apps/volontulo/migrations/*,node_modules,.ropeproject' .;\
echo -e '\nRunning pylint...';\
pylint apps;"
lint_frontend:
docker-compose run --rm frontend node_modules/.bin/ng lint
lint_all: lint_backend lint_frontend
# Docker commands
docker_remove_containers:
docker rm $$(docker ps -qa --filter name='volontulo_*')
docker_remove_images:
docker rmi $$(docker images -qa --filter reference='*/volontulo*')
docker_remove_all: docker_remove_containers docker_remove_images
# Other commands
populate_database:
docker-compose run --rm backend python3 manage.py populate_database