diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ !packages/README !packages/keys/ .venv +.tox docker/*.override.yml docker/tests/*.logs diff --git a/docker/tox.ini b/docker/tox.ini new file mode 100644 --- /dev/null +++ b/docker/tox.ini @@ -0,0 +1,29 @@ +[tox] +envlist=flake8,py3,shell_tests + +[testenv] +skip_install = true +passenv = COMPOSE_FILE +deps = + pytest + testinfra + docker-compose +commands = + # docker-compose build swh-storage + pytest + +[testenv:flake8] +deps = + flake8 +commands = + {envpython} -m flake8 tests + +[testenv:shell_tests] +deps = + docker-compose +whitelist_externals = + /bin/bash +commands = + /bin/bash tests/run_tests.sh + +