Files
deb-python-dcos/cli/tox.ini
Kevin Klues 9bed83ac76 Updated consolidated tox.ini files and made them workable on windows.
Some extra environment variables are necessary on windows to get the CLI
to pass the integration tests when using 'tox'. Specifically, the HOME*
environment variables are needed to allow python's 'expanduser()'
function to succeed when resolving the '~' path for the default
DCOS_DIR. Additionally, the OPENSSL_CONF variable is need to allow SSL
connections to be made properly using the windows OpenSSL library.
Without these additional variables things seem to die in unexpected
ways.
2017-07-06 23:23:45 -07:00

52 lines
979 B
INI

[tox]
envlist = py35-syntax, py35-unit, py35-integration
toxworkdir={env:TOXWORKDIR:.tox}
[flake8]
application-import-names=dcos,dcoscli
import-order-style=smarkets
[testenv]
deps =
mock
pytest
pytest-cov
pytz
teamcity-messages
-e..
# 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
CLI_TEST_MASTER_PROXY
TEAMCITY_VERSION
PYTHONIOENCODING
[testenv:py35-syntax]
deps =
flake8
flake8-import-order==0.9.2
pep8-naming
..
commands =
flake8 --verbose {env:CI_FLAGS:} dcoscli tests setup.py
[testenv:py35-integration]
commands =
py.test -p no:cacheprovider -vv -x {env:CI_FLAGS:} tests/integrations{posargs}
[testenv:py35-unit]
commands =
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} tests/unit{posargs}