-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 778 Bytes
/
Makefile
File metadata and controls
42 lines (28 loc) · 778 Bytes
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
.PHONY: default build start down stop restart migrate migrations \
superuser psql test lint-only test-only
# General usage
default: build start
build:
docker-compose build
start:
docker-compose up
down:
docker-compose down
stop:
docker-compose stop
restart: stop start
migrate:
docker-compose run --rm django python manage.py migrate
migrations:
docker-compose run --rm django python manage.py makemigrations
superuser:
docker-compose run --rm django python manage.py createsuperuser
psql:
docker-compose exec -u postgres postgres psql
# Testing
test: lint-only test-only
lint-only:
docker-compose run --rm django flake8 apps/
docker-compose run --rm django isort -c
test-only:
docker-compose run --rm django py.test --cov-config=setup.cfg --cov=apps