Files
deb-python-fuelclient/tox.ini
ricolin 8a392994a6 Remove py26 support
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Closes-Bug: 1519510
Depends-On: I3ea60260b467710a3e287d88e026f72060f63a1d

Change-Id: I503715ce35d126d18df7f676edb128ba38f4f161
2015-12-02 23:17:15 +08:00

91 lines
2.5 KiB
INI

[tox]
minversion = 2.1
skipsdist = True
envlist = py27,pep8,functional,cleanup
[testenv]
usedevelop = True
install_command = pip install --allow-external -U {opts} {packages}
whitelist_externals = bash
oslo_debug_helper
setenv = VIRTUAL_ENV={envdir}
ARTIFACTS={toxinidir}/test_run
FUELCLIENT_JUNIT=fuelclient-{envname}.xml
FUELCLIENT_CUSTOM_SETTINGS={toxinidir}/test_run/fuel_client_config.yaml
# Functional env settings
FUEL_WEB_CLONE=yes
FUEL_WEB_REPO=https://github.com/stackforge/fuel-web.git
FETCH_REPO=
FETCH_REFSPEC=
FUEL_COMMIT=master
NAILGUN_ROOT=/tmp/fuel_web/nailgun
# Nailgun server parameters
NAILGUN_PORT=8003
NAILGUN_CHECK_PATH=/api/version
NAILGUN_START_MAX_WAIT_TIME=20
# NOTE(romcheg): this is a temporary change to work around
# a bug in tox 2.2.1
# Don't forget to set up all these variables,
# manually if you're trying to run tests on
# your local environment.
passenv = FUEL_WEB_ROOT TEST_NAILGUN_DB
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
bash -c "TESTS_DIR={posargs:./fuelclient/tests/unit} python setup.py test --slowest"
[testenv:functional]
commands =
bash {toxinidir}/tools/cleanup.sh
bash {toxinidir}/tools/prepare_nailgun.sh
bash -c "TESTS_DIR={posargs:./fuelclient/tests/functional} python setup.py test --slowest"
[testenv:dbgunit]
commands = oslo_debug_helper -t {toxinidir}/fuelclient/tests/unit {posargs}
[testenv:dbgfunc]
commands =
bash {toxinidir}/tools/cleanup.sh
bash {toxinidir}/tools/prepare_nailgun.sh
oslo_debug_helper -t {toxinidir}/fuelclient/tests/functional {posargs}
[testenv:cleanup]
commands =
bash {toxinidir}/tools/cleanup.sh
bash -c "find {toxinidir} -name \"*.pyc\" -delete"
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
deps = hacking==0.10
usedevelop = False
commands =
flake8 {posargs:fuelclient}
[testenv:cover]
commands =
bash -c "TESTS_DIR={posargs:./fuelclient/tests/unit} python setup.py testr --coverage"
[testenv:venv]
commands = {posargs:}
[testenv:devenv]
envdir = devenv
usedevelop = True
[flake8]
# TODO(atykhonov): H405 must be removed when old CLI is removed
ignore = H405
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
show-pep8 = True
show-source = True
count = True
[hacking]
import_exceptions = testtools.matchers