2020-06-07 18:17:11 +00:00
|
|
|
.PHONY: clean test-env test test-cov test-tox-all test-e2e
|
|
|
|
|
|
|
|
TOX_ENV ?= py36
|
2015-07-29 18:37:15 +00:00
|
|
|
|
2020-06-13 06:55:02 +00:00
|
|
|
E2E_PYTHON_EXE ?= python3.6
|
|
|
|
|
2015-07-29 18:37:15 +00:00
|
|
|
clean:
|
|
|
|
find . -name '*.pyc' -exec rm -f {} +
|
|
|
|
find . -name '*.pyo' -exec rm -f {} +
|
|
|
|
find . -name '*~' -exec rm -f {} +
|
2015-12-02 21:43:59 +00:00
|
|
|
find . -name '__pycache__' -exec rmdir {} +
|
2015-07-29 18:37:15 +00:00
|
|
|
|
|
|
|
test-env:
|
2020-06-07 18:17:11 +00:00
|
|
|
pip install -r dev-requirements.txt
|
2015-07-29 18:37:15 +00:00
|
|
|
|
2020-06-07 18:17:11 +00:00
|
|
|
test:
|
|
|
|
tox -e $(TOX_ENV)
|
2015-07-29 18:37:15 +00:00
|
|
|
|
2020-06-07 18:17:11 +00:00
|
|
|
test-cov:
|
|
|
|
tox -e $(TOX_ENV) -- -x -vv --cov=pipdeptree --cov-report=xml --cov-report=html --cov-report=term-missing
|
|
|
|
|
|
|
|
# Requires all the versions of python executables to be present (See
|
|
|
|
# tox.ini for list of python versions)
|
|
|
|
test-tox-all:
|
2015-07-29 18:37:15 +00:00
|
|
|
tox
|
2020-06-07 18:17:11 +00:00
|
|
|
|
|
|
|
test-e2e:
|
2020-06-13 06:55:02 +00:00
|
|
|
rm -rf tests/profiles/*/.env_$(E2E_PYTHON_EXE)*
|
|
|
|
cd tests && ./e2e-tests webapp
|
|
|
|
cd tests && ./e2e-tests conflicting
|
|
|
|
cd tests && ./e2e-tests cyclic
|
|
|
|
|
|
|
|
test-e2e-quick:
|
2020-06-07 18:17:11 +00:00
|
|
|
cd tests && ./e2e-tests webapp
|
|
|
|
cd tests && ./e2e-tests conflicting
|
|
|
|
cd tests && ./e2e-tests cyclic
|