36b30a74c1
Additionally: * fix Zuul configuration for lower-constraints job * raise lower bound for Horizon (due to mox3 removal) * remove Django from requirements.txt (already included from Horizon) Change-Id: I44d6cd7477ac0d318705077109b4dc233a5a37d8 Story: 2002163 Task: 24398
51 lines
1.2 KiB
INI
51 lines
1.2 KiB
INI
[tox]
|
|
envlist = py27,pep8,py35
|
|
minversion = 2.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
passenv = http_proxy
|
|
HTTP_PROXY
|
|
https_proxy
|
|
HTTPS_PROXY
|
|
no_proxy
|
|
NO_PROXY
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
install_command = pip install {opts} {packages}
|
|
|
|
whitelist_externals =
|
|
/bin/bash
|
|
find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
/bin/bash run_tests.sh -N {posargs}
|
|
|
|
[testenv:py27]
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=monitoring.test.settings
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
/bin/bash run_tests.sh -N --pep8
|
|
python setup.py check --restructuredtext --strict
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = /bin/bash run_tests.sh -N --coverage {posargs}
|
|
|
|
[flake8]
|
|
max-line-length = 100
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*
|
|
|
|
[testenv:lower-constraints]
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|