60acb5cfbb
Instead of using tox-install.sh, we can install horizon now directly from pypi - or use the current branch in CI system using tox-siblings. Update tox.ini for this change and add horizon to requirements file. Use new location for constraints file. Change-Id: Iabdad92e19b57b82ced7ae20043a08d174995305
40 lines
862 B
INI
40 lines
862 B
INI
[tox]
|
|
envlist = py27,py27dj18,pep8
|
|
minversion = 2.3.1
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
BRANCH_NAME=master
|
|
CLIENT_NAME=iotronic-ui
|
|
install_command = pip install {opts} {packages}
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = {}
|
|
whitelist_externals = flake8
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
# commands = flake8 {posargs}
|
|
commands =
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py27]
|
|
basepython = python2.7
|
|
commands =
|
|
|
|
[testenv:py27dj18]
|
|
basepython = python2.7
|
|
commands =
|
|
pip install django>=1.8,<2.0
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
ignore = E711,E712,H404,H405,E123,E125,E901,H301,H701,E226
|
|
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
|
|
max-complexity = 20
|