Merge "Use python3 for tox linting"

This commit is contained in:
Zuul 2018-09-27 11:58:17 +00:00 committed by Gerrit Code Review
commit ba7ef988d6
2 changed files with 6 additions and 1 deletions

View File

@ -11,10 +11,12 @@ deps = -r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:pyflakes]
basepython = python3
deps = pyflakes
commands = pyflakes setup.py scripts
[testenv:linters]
basepython = python3
whitelist_externals = bash
commands = flake8 --max-line-length 80 {toxinidir} {posargs}

View File

@ -13,13 +13,13 @@
- tripleo-multinode-branchful
check:
jobs:
- openstack-tox-linters
- openstack-tox-py27:
files:
- ^scripts/emit_releases_file/.*$
- openstack-tox-py35:
files:
- ^scripts/emit_releases_file/.*$
- openstack-tox-linters
- tripleo-ci-centos-7-scenario001-multinode-oooq:
files:
- ^playbooks/tripleo-ci/.*$
@ -62,6 +62,9 @@
gate:
queue: tripleo
jobs:
# Don't put a files section on the linters job, otherwise no
# jobs might be defined and nothing can merge in this repo.
- openstack-tox-linters
- openstack-tox-py27:
files:
- ^scripts/emit_releases_file/.*$