Consolidate pep8/bandit zuul gating
This change adds the global zuul pep8 tox job, which runs both bandit and pep8 using tox. This also removes the two other airship specific lint-pep8 and bandit zuul jobs since they are both covered by the default openstack global one. Change-Id: Iebea5b872f78762d6f401b574d53965b2e1c090b
This commit is contained in:
parent
7d9ca0b69b
commit
0de9ffcbf2
23
.zuul.yaml
23
.zuul.yaml
@ -13,15 +13,15 @@
|
|||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
- openstack-tox-pep8
|
||||||
- airship-shipyard-linter
|
- airship-shipyard-linter
|
||||||
- airship-shipyard-ubuntu:
|
- airship-shipyard-ubuntu:
|
||||||
voting: false
|
voting: false
|
||||||
- airship-shipyard-tox-py35
|
- airship-shipyard-tox-py35
|
||||||
- airship-shipyard-pep8
|
|
||||||
- airship-shipyard-security-bandit
|
|
||||||
- airship-shipyard-image
|
- airship-shipyard-image
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
|
- openstack-tox-pep8
|
||||||
- airship-shipyard-linter
|
- airship-shipyard-linter
|
||||||
# NOTE(portdirect): enable when voting enabled.
|
# NOTE(portdirect): enable when voting enabled.
|
||||||
# - airship-shipyard-ubuntu:
|
# - airship-shipyard-ubuntu:
|
||||||
@ -30,8 +30,6 @@
|
|||||||
# - ^doc/.*$
|
# - ^doc/.*$
|
||||||
# - ^releasenotes/.*$
|
# - ^releasenotes/.*$
|
||||||
- airship-shipyard-tox-py35
|
- airship-shipyard-tox-py35
|
||||||
- airship-shipyard-pep8
|
|
||||||
- airship-shipyard-security-bandit
|
|
||||||
- airship-shipyard-image
|
- airship-shipyard-image
|
||||||
post:
|
post:
|
||||||
jobs:
|
jobs:
|
||||||
@ -103,23 +101,6 @@
|
|||||||
vars:
|
vars:
|
||||||
tox_envlist: py35
|
tox_envlist: py35
|
||||||
|
|
||||||
- job:
|
|
||||||
name: airship-shipyard-pep8
|
|
||||||
description: |
|
|
||||||
Run pep8 tests for the Airship Shipyard project under
|
|
||||||
cPython version 3.5.
|
|
||||||
parent: airship-shipyard-tox-base
|
|
||||||
nodeset: airship-shipyard-single-node
|
|
||||||
vars:
|
|
||||||
tox_envlist: pep8
|
|
||||||
|
|
||||||
- job:
|
|
||||||
name: airship-shipyard-security-bandit
|
|
||||||
description: |
|
|
||||||
Run bandit code scans for the Airship Shipyard project
|
|
||||||
run: tools/gate/playbooks/security-bandit.yaml
|
|
||||||
nodeset: airship-shipyard-single-node
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-shipyard-image-base
|
name: airship-shipyard-image-base
|
||||||
description: |
|
description: |
|
||||||
|
@ -18,4 +18,4 @@ git+https://github.com/att-comdev/promenade.git@master#egg=promenade
|
|||||||
flake8==3.3.0
|
flake8==3.3.0
|
||||||
|
|
||||||
# Security scanning
|
# Security scanning
|
||||||
bandit>=1.1.0 # Apache-2.0
|
bandit>=1.5.0 # Apache-2.0
|
||||||
|
@ -31,15 +31,18 @@ commands =
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython=python3
|
basepython=python3
|
||||||
commands = flake8 {posargs}
|
deps=
|
||||||
|
flake8==3.3.0
|
||||||
|
bandit>=1.5.0
|
||||||
|
commands =
|
||||||
|
flake8 {toxinidir}/shipyard_airflow
|
||||||
|
bandit -r shipyard_airflow
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
skipsdist=True
|
|
||||||
basepython=python3
|
basepython=python3
|
||||||
|
skipsdist= True
|
||||||
commands =
|
commands =
|
||||||
bandit \
|
bandit -r shipyard_airflow -n 5
|
||||||
-r shipyard_airflow \
|
|
||||||
-n 5
|
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
commands = oslo-config-generator --config-file=generator/config-generator.conf
|
commands = oslo-config-generator --config-file=generator/config-generator.conf
|
||||||
|
@ -32,15 +32,18 @@ commands =
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython=python3
|
basepython=python3
|
||||||
commands = flake8 {posargs}
|
deps=
|
||||||
|
flake8==3.3.0
|
||||||
|
bandit>=1.5.0
|
||||||
|
commands =
|
||||||
|
flake8 {toxinidir}/shipyard_airflow
|
||||||
|
bandit -r shipyard_airflow
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
basepython=python3
|
basepython=python3
|
||||||
skipsdist=True
|
skipsdist=True
|
||||||
commands =
|
commands =
|
||||||
bandit \
|
bandit -r shipyard_client -n 5
|
||||||
-r shipyard_client \
|
|
||||||
-n 5
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
filename = *.py
|
filename = *.py
|
||||||
|
Loading…
Reference in New Issue
Block a user