-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (27 loc) · 965 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
39
test:
pipenv run pytest # --disable-warnings
test-in:
docker exec -it lite-hmrc-intg make test
migrate:
docker exec -it lite-hmrc-intg pipenv run ./manage.py migrate
migrations:
docker exec -it lite-hmrc-intg pipenv run ./manage.py makemigrations
createsuperuser:
docker exec -it lite-hmrc-intg pipenv run ./manage.py createsuperuser
shell:
docker exec -it lite-hmrc-intg pipenv run ./manage.py shell -i python
run:
pipenv run ./manage.py runserver
check-format:
black --check ./mail
check-prospector:
docker exec -it lite-hmrc-intg pipenv run prospector -W pylint -W pep257
cov:
docker exec -it lite-hmrc-intg pipenv run coverage run --source='.' manage.py test mail
cov-report:
docker exec -it lite-hmrc-intg pipenv run coverage report
run-icms:
docker-compose -f docker-compose.yml -f docker-compose-icms.yml up --build -d
# e.g. make pipenv COMMAND="install --dev requests-mock"
pipenv:
docker exec -it lite-hmrc-intg pipenv ${COMMAND}