forked from unicef/iogt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (33 loc) · 1.24 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
# Build the project
build:
docker-compose build
down:
docker-compose down
makemigrations:
docker-compose run django python manage.py makemigrations
migrate:
docker-compose run django python manage.py migrate
setup:
make migrate
make update_elasticsearch_index
# SSH into the django container
ssh:
docker-compose run django /bin/bash
up:
docker-compose up
update_elasticsearch_index:
docker-compose run django python manage.py update_index
test:
docker-compose -f docker-compose.test.yml up --build -d django
docker-compose -f docker-compose.test.yml exec -T django python manage.py collectstatic --noinput
docker-compose -f docker-compose.test.yml exec -T django coverage run --source='.' manage.py test --noinput
docker-compose -f docker-compose.test.yml exec -T django coverage html
docker-compose -f docker-compose.test.yml down --remove-orphans
selenium-test: selenium-up selenium-local selenium-down
selenium-up:
docker-compose -f docker-compose.selenium.yml up --build -d
docker-compose -f docker-compose.selenium.yml exec -T django python manage.py collectstatic --noinput
selenium-local:
docker-compose exec -T django python manage.py test selenium_tests
selenium-down:
docker-compose -f docker-compose.selenium.yml down --remove-orphans