178cbed72a
Caching is enabled by default from pip version 6.0 More info: https://testrun.org/tox/latest/config.html#confval-downloadcache=path https://pip.pypa.io/en/stable/reference/pip_install/#caching Change-Id: I4d371b9b2c007892c6f5e2906960d0fac66ec980
31 lines
686 B
INI
31 lines
686 B
INI
[tox]
|
|
envlist = pep8,py27,py34
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = /usr/bin/python
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = find . -type f -name "*.pyc" -delete
|
|
python monasca_test_setup.py
|
|
python setup.py testr --slowest --testr-args="{posargs}"
|
|
whitelist_externals = bash
|
|
find
|
|
|
|
[testenv:pep8]
|
|
deps = -r{toxinidir}/pep8-test-requirements.txt
|
|
commands = flake8
|
|
|
|
[flake8]
|
|
ignore =
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
show-source = True
|
|
|
|
[hacking]
|
|
import_exceptions =
|
|
ceilometer.i18n
|
|
|