Skip to content
Snippets Groups Projects
Commit c58cb57f authored by David Douard's avatar David Douard
Browse files

tox: add a simple tox file that runs tests, flake8 and check-manifest

note that unit tests are executed via pifpaf, so a running postgres
server is not required (nor used) when unit tests are spawn with tox.

Also add .tox in gitignore.
parent b6f865f2
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@ __pycache__
dist
swh.core.egg-info
version.txt
.tox
tox.ini 0 → 100644
[tox]
envlist=check-manifest,flake8,py3
[testenv:py3]
deps =
pifpaf
nose
commands =
pifpaf run postgresql -- nosetests
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
{envpython} -m flake8
[testenv:check-manifest]
skip_install = true
deps =
check-manifest
commands =
{envpython} -m check_manifest {toxinidir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment