deb-python-dcos/tox.ini

44 lines
814 B
INI

[tox]
envlist = py35-syntax, py35-unit
toxworkdir={env:TOXWORKDIR:.tox}
[flake8]
application-import-names=dcos
import-order-style=smarkets
[testenv]
deps =
mock
pytest
pytest-cov
teamcity-messages
# We currently include '*' as a catch all even though we also whitelist
# specific # environment variables we know we care about. We should audit this in
# the near future.
passenv =
*
HOME
USERPROFILE
HOMEPATH
HOMEDRIVE
OPENSSL_CONF
DCOS_*
CI_FLAGS
CLI_TEST_SSH_KEY_PATH
TEAMCITY_VERSION
PYTHONIOENCODING
[testenv:py35-syntax]
deps =
flake8
flake8-import-order==0.9.2
pep8-naming
commands =
flake8 --verbose {env:CI_FLAGS:} dcos tests setup.py
[testenv:py35-unit]
commands =
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} --cov {envsitepackagesdir}/dcos tests{posargs}