Files
deb-python-dcos/cli/tox.ini
Cody Maloney 3f26840087 improve tox config: TeamCity test output, flake8-import-sort, pep8-naming (#780)
* Subprocess().Popen() -> Subprocess().popen() per PEP-8 conventions
* Move cosmos_error out of class because it isn't a member function per PEP-8
* Add pep8-naming plugin to flake8 so PEP-8 errors are caught during syntax checks
2016-10-05 11:58:02 -07:00

41 lines
684 B
INI

[tox]
envlist = py34-syntax, py34-unit, py34-integration
[flake8]
application-import-names=dcos,dcoscli
import-order-style=smarkets
[testenv]
deps =
mock
pytest
pytest-cov
pytz
teamcity-messages
-e..
passenv =
DCOS_*
CI_FLAGS
CLI_TEST_SSH_KEY_PATH
CLI_TEST_MASTER_PROXY
TEAMCITY_VERSION
[testenv:py34-syntax]
deps =
flake8
flake8-import-order
pep8-naming
..
commands =
flake8 --verbose {env:CI_FLAGS:} dcoscli tests setup.py
[testenv:py34-integration]
commands =
py.test -p no:cacheprovider -vv -x {env:CI_FLAGS:} tests/integrations{posargs}
[testenv:py34-unit]
commands =
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} tests/unit{posargs}