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:
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pep8
|
||||
- airship-shipyard-linter
|
||||
- airship-shipyard-ubuntu:
|
||||
voting: false
|
||||
- airship-shipyard-tox-py35
|
||||
- airship-shipyard-pep8
|
||||
- airship-shipyard-security-bandit
|
||||
- airship-shipyard-image
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pep8
|
||||
- airship-shipyard-linter
|
||||
# NOTE(portdirect): enable when voting enabled.
|
||||
# - airship-shipyard-ubuntu:
|
||||
@ -30,8 +30,6 @@
|
||||
# - ^doc/.*$
|
||||
# - ^releasenotes/.*$
|
||||
- airship-shipyard-tox-py35
|
||||
- airship-shipyard-pep8
|
||||
- airship-shipyard-security-bandit
|
||||
- airship-shipyard-image
|
||||
post:
|
||||
jobs:
|
||||
@ -103,23 +101,6 @@
|
||||
vars:
|
||||
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:
|
||||
name: airship-shipyard-image-base
|
||||
description: |
|
||||
|
@ -18,4 +18,4 @@ git+https://github.com/att-comdev/promenade.git@master#egg=promenade
|
||||
flake8==3.3.0
|
||||
|
||||
# Security scanning
|
||||
bandit>=1.1.0 # Apache-2.0
|
||||
bandit>=1.5.0 # Apache-2.0
|
||||
|
@ -31,15 +31,18 @@ commands =
|
||||
|
||||
[testenv:pep8]
|
||||
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]
|
||||
skipsdist=True
|
||||
basepython=python3
|
||||
skipsdist= True
|
||||
commands =
|
||||
bandit \
|
||||
-r shipyard_airflow \
|
||||
-n 5
|
||||
bandit -r shipyard_airflow -n 5
|
||||
|
||||
[testenv:genconfig]
|
||||
commands = oslo-config-generator --config-file=generator/config-generator.conf
|
||||
|
@ -32,15 +32,18 @@ commands =
|
||||
|
||||
[testenv:pep8]
|
||||
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]
|
||||
basepython=python3
|
||||
skipsdist=True
|
||||
commands =
|
||||
bandit \
|
||||
-r shipyard_client \
|
||||
-n 5
|
||||
bandit -r shipyard_client -n 5
|
||||
|
||||
[flake8]
|
||||
filename = *.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user