dbca28c411
This review adds a pep8 jobs to be triggered with changes to the releases script files. pylint was considered but removed from this initial review. Change-Id: Ib8809c94d99ccb1ecafa94b3791f613c35dbd9ef
47 lines
1.2 KiB
INI
47 lines
1.2 KiB
INI
[tox]
|
|
envlist = pep8, py27, py35
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pyflakes]
|
|
deps = pyflakes
|
|
commands = pyflakes setup.py scripts
|
|
|
|
[testenv:pep8]
|
|
changedir = scripts/emit_releases_file
|
|
whitelist_externals = bash
|
|
commands = flake8 --max-line-length 80
|
|
|
|
[testenv:cireport]
|
|
passenv =
|
|
SSH_AUTH_SOCK
|
|
commands = python scripts/tripleo-jobs-gerrit.py {posargs}
|
|
|
|
# This environment can be used to quickly validate that all needed system
|
|
# packages required to successfully execute test targets are installed
|
|
[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
|
|
|
|
# This environment is used to run unit tests
|
|
[testenv:py27]
|
|
deps = {[testenv]deps}
|
|
changedir = scripts/emit_releases_file
|
|
commands = pytest
|
|
|
|
[testenv:py35]
|
|
deps={[testenv]deps}
|
|
changedir = {[testenv:py27]changedir}
|
|
commands = {[testenv:py27]commands}
|