Browse Source
Introduce YAML linting for check and gate queues so that we don't introduce incorrect YAML in proposed changes. Includes a couple of nit fixes so that tests actually pass. Change-Id: Ie07f11a24fb2ad853b49b69fe295bcae2c5764e6changes/59/626559/5
5 changed files with 28 additions and 7 deletions
@ -1,3 +1,7 @@
|
||||
- project: |
||||
templates: |
||||
- noop-jobs |
||||
check: |
||||
jobs: |
||||
- openstack-tox-validate |
||||
gate: |
||||
jobs: |
||||
- openstack-tox-validate |
||||
|
@ -0,0 +1,15 @@
|
||||
[tox] |
||||
envlist = validate |
||||
minversion = 1.6 |
||||
skipsdist = True |
||||
|
||||
[testenv] |
||||
install_command = pip install -U {opts} {packages} |
||||
|
||||
[testenv:validate] |
||||
basepython = python3 |
||||
deps = |
||||
yamllint==1.4.1 |
||||
commands = |
||||
yamllint -f parsable \ |
||||
deployment_tools.yaml openstack_components.yaml sdks.yaml |
Loading…
Reference in new issue