Merge "Move safety checks to new Zuul job"
This commit is contained in:
commit
3a4bc68a10
11
.zuul.yaml
11
.zuul.yaml
@ -21,12 +21,14 @@
|
|||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-pep8
|
- openstack-tox-pep8
|
||||||
|
- spyglass-dependency-vulnerability-check
|
||||||
- spyglass-docker-build-gate-ubuntu_xenial
|
- spyglass-docker-build-gate-ubuntu_xenial
|
||||||
- spyglass-docker-build-gate-ubuntu_bionic
|
- spyglass-docker-build-gate-ubuntu_bionic
|
||||||
- spyglass-docker-build-gate-opensuse
|
- spyglass-docker-build-gate-opensuse
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-pep8
|
- openstack-tox-pep8
|
||||||
|
- spyglass-dependency-vulnerability-check
|
||||||
- spyglass-docker-build-gate-ubuntu_xenial
|
- spyglass-docker-build-gate-ubuntu_xenial
|
||||||
- spyglass-docker-build-gate-ubuntu_bionic
|
- spyglass-docker-build-gate-ubuntu_bionic
|
||||||
- spyglass-docker-build-gate-opensuse
|
- spyglass-docker-build-gate-opensuse
|
||||||
@ -43,6 +45,15 @@
|
|||||||
- name: primary
|
- name: primary
|
||||||
label: ubuntu-xenial
|
label: ubuntu-xenial
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: spyglass-dependency-vulnerability-check
|
||||||
|
parent: openstack-tox
|
||||||
|
voting: false
|
||||||
|
timeout: 600
|
||||||
|
nodeset: spyglass-single-node
|
||||||
|
vars:
|
||||||
|
tox_envlist: safety
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: spyglass-docker-build-gate-ubuntu_xenial
|
name: spyglass-docker-build-gate-ubuntu_xenial
|
||||||
timeout: 1800
|
timeout: 1800
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py36, py37, pep8, docs, cover
|
envlist = py36, py37, pep8, safety, docs, cover
|
||||||
minversion = 2.3.1
|
minversion = 2.3.1
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
@ -39,12 +39,11 @@ commands =
|
|||||||
yapf -dr {toxinidir}/spyglass {toxinidir}/setup.py {toxinidir}/tests
|
yapf -dr {toxinidir}/spyglass {toxinidir}/setup.py {toxinidir}/tests
|
||||||
flake8 {toxinidir}/spyglass {toxinidir}/tests
|
flake8 {toxinidir}/spyglass {toxinidir}/tests
|
||||||
bandit -r spyglass -n 5
|
bandit -r spyglass -n 5
|
||||||
pipenv check
|
|
||||||
safety check -r {toxinidir}/doc/requirements.txt --bare
|
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
bash
|
bash
|
||||||
|
|
||||||
[testenv:safety]
|
[testenv:safety]
|
||||||
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
pipenv
|
pipenv
|
||||||
safety
|
safety
|
||||||
@ -54,6 +53,7 @@ commands =
|
|||||||
safety check -r {toxinidir}/doc/requirements.txt --full-report
|
safety check -r {toxinidir}/doc/requirements.txt --full-report
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
pipenv
|
pipenv
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user