Makefile 607 Bytes
Newer Older
1
all: lint pep8 docs test
Simo Sorce's avatar
Simo Sorce committed
2 3 4
	echo "All tests passed"

lint:
5 6
	# Pylint checks
	tox -e lint
Simo Sorce's avatar
Simo Sorce committed
7 8 9

pep8:
	# Check style consistency
Simo Sorce's avatar
Simo Sorce committed
10 11
	tox -e pep8py2
	tox -e pep8py3
Simo Sorce's avatar
Simo Sorce committed
12 13 14 15 16 17 18 19

clean:
	rm -fr build dist *.egg-info
	find ./ -name '*.pyc' -exec rm -f {} \;

cscope:
	git ls-files | xargs pycscope

Simo Sorce's avatar
Simo Sorce committed
20 21 22 23 24 25
testlong: export JWCRYPTO_TESTS_ENABLE_MMA=True
testlong: export TOX_TESTENV_PASSENV=JWCRYPTO_TESTS_ENABLE_MMA
testlong:
	rm -f .coverage
	tox -e py35

Simo Sorce's avatar
Simo Sorce committed
26 27
test:
	rm -f .coverage
28
	tox -e py27
Simo Sorce's avatar
Simo Sorce committed
29 30
	tox -e py34 --skip-missing-interpreter
	tox -e py35 --skip-missing-interpreter
31 32 33 34 35 36

DOCS_DIR = docs
.PHONY: docs

docs:
	$(MAKE) -C $(DOCS_DIR) html