forked from quantling/pyndl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (25 loc) · 842 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
PYTHON_MODULES := pyndl tests
PYTHON_VERSION := ''
PYTHONPATH := .
VENV := .venv
PYTEST := env PYTHONPATH=$(PYTHONPATH) PYTEST=1 $(VENV)/bin/py.test
PYCODESTYLE := env PYTHONPATH=$(PYTHONPATH) $(VENV)/bin/pycodestyle --repeat
PYTHON := env PYTHONPATH=$(PYTHONPATH) $(VENV)/bin/python$(PYTHON_VERSION)
PIP := $(VENV)/bin/pip
DEFAULT_PYTHON := /usr/bin/python$(PYTHON_VERSION)
VIRTUALENV := /usr/bin/env virtualenv
default:
tox
install: install-venv
which tox > /dev/null || (echo "Please install tox (pip install tox)!" && exit 1) && echo "All right! Run with tox."
checkstyle:
tox -e checkstyle
documentation:
tox -e documentation
test:
tox -e test
test-versions:
tox -e $(tox -l | grep test | paste -d, -s)
test-slow: use-venv
tox -e test -- --runslow
.PHONY: default install test use-venv install-venv checkstyle test-slow