summaryrefslogtreecommitdiff
path: root/Makefile
blob: c97b35a5e3093672e4780ddf96a44e37712be58b (plain)
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}