-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (28 loc) · 914 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
# Run common Django commands:
# make install -- installs on a production environment
# make install-test -- installs for test environment
# make install-dev -- installs for development environment
# make test -- run tests
# make init -- initializes the development environment
# make reformat -- formats the Python code
.PHONY: init install-test install-dev install-prod migrate test integration-test
install-prod:
pipenv install --deploy
pipenv run python init --prod --no-debug
install-test:
pipenv install --ignore-pipfile --dev
pipenv run python init --test
install-dev: init
pipenv install --dev
pipenv run python init --dev --debug
test:
pipenv run mypy librecval
pipenv run pytest
integration-test:
pipenv run python ci_run_cypress.py
init:
git config core.hooksPath .githooks
migrate:
pipenv run python3 manage.py migrate
reformat:
black librecval tests validation recvalsite