Files
deb-python-dcos/cli/tox.ini
Tamar Ben-Shachar f2acfb80a1 Run tests with CCM
2015-12-28 14:01:05 -08:00

40 lines
889 B
INI

[tox]
envlist = syntax, py{27,34}-unit, py{27,34}-integration
[testenv]
deps =
teamcity-messages
pytest
pytest-cov
mock
pytz
-e..
passenv = DCOS_* CI_FLAGS EXHIBITOR_URL VBOX_IP CLI_TEST_SSH_KEY_PATH CLI_TEST_MASTER_PROXY
[testenv:syntax]
deps =
teamcity-messages
flake8
isort
..
commands =
flake8 --verbose {env:CI_FLAGS:} dcoscli tests setup.py
isort --recursive --check-only --diff --verbose dcoscli tests setup.py
[testenv:py27-integration]
commands =
py.test -p no:cacheprovider -vv -x {env:CI_FLAGS:} tests/integrations{posargs}
[testenv:py34-integration]
commands =
py.test -p no:cacheprovider -vv -x {env:CI_FLAGS:} tests/integrations{posargs}
[testenv:py27-unit]
commands =
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} tests/unit{posargs}
[testenv:py34-unit]
commands =
py.test -p no:cacheprovider -vv {env:CI_FLAGS:} tests/unit{posargs}