5a62e85194
Default behaviour of the system_tests.sh is unchanged, but with -N it will update requirements on each run (without --upgrade). If fuel-devops has incorrect version or not installed, then script will fail with -N option (until fuel-devops is not packed to PyPi repository). - Removed dependency on fuel-devops located on github. This dependency splitted into two requirements: requirements-devops.txt : will be used with -N option to controll the installed fuel-devops version; requirements-devops-source.txt : will be used for tox tests and update python virtual environments on CI. - Update system_tests.sh with two new options: -R and -N: REQUIREMENTS_DIR or -R : name of the dir where requirements.txt and constraints.txt are located (fuelweb_test by default) UPDATE_REQUIREMENTS or -N : 'yes' or 'no' (-N == 'yes'). Perform update PyPi packages from requirements.txt. Default : 'no' - remove unused variables and code that was used for build ISO Change-Id: Ib9efd2136226fb43b506db390079f1b72a06069d Related-Bug:#1575065
86 lines
1.7 KiB
INI
86 lines
1.7 KiB
INI
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
skipsdist = True
|
|
envlist = pep8, py27, pylint, docs, pep8-py{34,35}, pylint-py{27}-{fuelweb,system,gates,fuel}
|
|
skip_missing_interpreters = True
|
|
|
|
[testenv]
|
|
deps =
|
|
-r{toxinidir}/fuelweb_test/requirements-devops-source.txt
|
|
-r{toxinidir}/fuelweb_test/requirements.txt
|
|
usedevelop = False
|
|
commands =
|
|
./run_system_test.py show-all-groups
|
|
|
|
[testenv:pep8]
|
|
# TODO: #deps = hacking==0.7
|
|
deps = flake8
|
|
usedevelop = False
|
|
commands =
|
|
flake8 {posargs:.}
|
|
|
|
[testenv:pep8-py34]
|
|
# TODO: #deps = hacking==0.7
|
|
deps = flake8
|
|
usedevelop = False
|
|
commands =
|
|
flake8 {posargs:.}
|
|
|
|
[testenv:pep8-py35]
|
|
# TODO: #deps = hacking==0.7
|
|
deps = flake8
|
|
usedevelop = False
|
|
commands =
|
|
flake8 {posargs:.}
|
|
|
|
[flake8]
|
|
ignore = H302,H802
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
|
show-pep8 = True
|
|
show-source = True
|
|
count = True
|
|
|
|
[testenv:pylint]
|
|
deps=
|
|
{[testenv]deps}
|
|
pylint
|
|
commands=
|
|
pylint --rcfile=.pylintrc_gerrit fuelweb_test system_test gates_tests fuel_tests
|
|
|
|
|
|
[testenv:pylint-py27-fuelweb]
|
|
deps=
|
|
{[testenv]deps}
|
|
pylint
|
|
commands=pylint fuelweb_test
|
|
|
|
[testenv:pylint-py27-system]
|
|
deps=
|
|
{[testenv]deps}
|
|
pylint
|
|
commands=pylint system_test
|
|
|
|
[testenv:pylint-py27-gates]
|
|
deps=
|
|
{[testenv]deps}
|
|
pylint
|
|
commands=pylint gates_tests
|
|
|
|
[testenv:pylint-py27-fuel]
|
|
deps=
|
|
{[testenv]deps}
|
|
pylint
|
|
commands=pylint fuel_tests
|
|
|
|
|
|
[testenv:docs]
|
|
changedir = doc
|
|
deps =
|
|
{[testenv]deps}
|
|
sphinx
|
|
commands = sphinx-build -b html -d _build/doctrees . _build/html
|