picasso/tox.ini

61 lines
1.6 KiB
INI

# Picasso
[tox]
envlist = py35-functional,py35-functional-regression,py35-integration,py35-integration-regression,pep8,docker-build,bandit
minversion = 1.6
skipsdist = True
[testenv]
passenv =
PYTHONASYNCIODEBUG
TEST_DB_URI
FUNCTIONS_API_URL
OS_AUTH_URL
OS_PASSWORD
OS_USERNAME
OS_PROJECT_NAME
DOCKER_HOST
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
rm
docker
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:py35-integration]
commands = pytest -v --tb=long --capture=sys --cov=picasso --capture=fd {toxinidir}/picasso/tests/integration
[testenv:py35-functional]
commands = pytest -v --tb=long --capture=sys --cov=picasso --capture=fd {toxinidir}/picasso/tests/functional
[testenv:py35-functional-regression]
commands = {toxinidir}/scripts/test_regression.sh functional {posargs}
[testenv:py35-integration-regression]
commands = {toxinidir}/scripts/test_regression.sh integration {posargs}
[testenv:docs]
commands =
rm -rf doc/html doc/build
python setup.py build_sphinx
[testenv:docker-full]
commands = {toxinidir}/scripts/docker_full.sh
[testenv:bandit]
commands = bandit -r picasso/
[flake8]
ignore = H202,H304,H404,H405,H501
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,migrations,docs