forked from openid/python-openid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 640 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 640 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
.PHONY: all test test-openid test-djopenid coverage isort
SOURCES = openid setup.py admin contrib
# Run tox by default
all:
tox
test-openid:
python -m unittest discover --start=openid
# Run tests for djopenid example
test-djopenid:
DJANGO_SETTINGS_MODULE="djopenid.settings" python -m unittest discover --start=examples
test: test-openid test-djopenid
coverage:
python -m coverage erase
-rm -r htmlcov
PYTHONPATH="examples" DJANGO_SETTINGS_MODULE="djopenid.settings" python -m coverage run --branch --source="." openid/test/__init__.py discover
python -m coverage html --directory=htmlcov
isort:
isort --recursive ${SOURCES}