-
Notifications
You must be signed in to change notification settings - Fork 111
/
Makefile
47 lines (34 loc) · 1.03 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
VIRTUALENV = $(shell which virtualenv)
ifeq ($(strip $(VIRTUALENV)),)
VIRTUALENV = /usr/local/python3/bin/virtualenv
endif
venv:
$(VIRTUALENV) venv
install: venv
. venv/bin/activate; pip install -r requirements.txt
install-test: venv install
. venv/bin/activate; pip install -r test_requirements.txt
lint: venv
. venv/bin/activate; flake8 django_twilio/ --exclude=*migrations
test: venv
. venv/bin/activate; python manage.py test
coverage: venv
. venv/bin/activate; coverage run --source django_twilio manage.py test
htmlcov: venv
. venv/bin/activate; coverage run --source django_twilio manage.py test
coverage html
open htmlcov/index.html
release: venv
. venv/bin/activate; python setup.py sdist upload
. venv/bin/activate; python setup.py bdist_wheel upload
build: venv
. venv/bin/activate; python setup.py sdist
. venv/bin/activate; python setup.py bdist_wheel
shell: venv
. venv/bin/activate; python manage.py shell
clean:
rm -rf docs/build
rm -rf django_twilio.egg-info
rm -rf htmlcov
rm -rf dist
rm -rf build/