d4380d1f03
- Removing unused dependencies from requirements & test-requirements. - Removing pypy job from tox. Change-Id: Ibac174650ceba17e293a49534861b8840c6b3d64
59 lines
1.6 KiB
INI
59 lines
1.6 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8,bash8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
# Every entry needs new line ...
|
|
whitelist_externals = bash
|
|
find
|
|
cp
|
|
mkdir
|
|
rm
|
|
sed
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_TEST_PATH=./training-labs/tests/
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:bash8]
|
|
# Filter the files and run bashate on required files.
|
|
deps = bashate
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash -c "find {toxinidir} \
|
|
-not \( -type d -name .?\* -prune \) \
|
|
-not \( -type d -name doc -prune \) \
|
|
-type f \
|
|
-name \*.sh \
|
|
-print0 | xargs -0 bashate -v"
|
|
|
|
[testenv:labs]
|
|
# Generate required tar-balls
|
|
commands =
|
|
mkdir -p {toxinidir}/build
|
|
bash {toxinidir}/tools/generate-labs master
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files.
|
|
deps = bindep
|
|
commands = bindep test
|