Add ansible playbooks linters job
- Execute ansible linters on ansible files - Join all linters verifications in one single job - Fixes Ansible roles and playbook to pass verification - Leave pep8 stand alone verification because of legacy OpenStack standard testing interface (required by openstack-tox-py* zuul project templates) This is intended to reduce the amount of CI jobs required to check and gate this project while adding verification for ansible playbooks and roles Change-Id: I44e03ffc8af21e798f8c7f709728a318764b328fchanges/68/698868/4
parent
88cbd3847f
commit
d2741460ff
@ -1,5 +1,6 @@
|
||||
# pep8 and flake8 requirements
|
||||
|
||||
ansible-lint < 4 # MIT
|
||||
flake8==2.5.5 # MIT
|
||||
flake8-import-order==0.12 # LGPLv3
|
||||
mypy>=0.740 # MIT
|
@ -1,16 +1,16 @@
|
||||
---
|
||||
|
||||
- name: "Check Python command '{{ python_command }}'"
|
||||
shell: "{{ python_command }} --version"
|
||||
command: "{{ python_command }} --version"
|
||||
|
||||
|
||||
- name: "Check Python command version is '{{ python_version }}'"
|
||||
shell: |
|
||||
command: |
|
||||
{{ python_command }} '{{ tobiko_dir }}/tools/ci/python_version' \
|
||||
--check-prefix
|
||||
|
||||
|
||||
- name: "Check Tox command: '{{ tox_command }}'"
|
||||
shell:
|
||||
command:
|
||||
chdir: "{{ tox_dir }}"
|
||||
cmd: "{{ tox_command }} --version"
|
||||
|
@ -1,7 +0,0 @@
|
||||
- job:
|
||||
name: tobiko-tox-mypy
|
||||
parent: openstack-tox
|
||||
description: |
|
||||
Run static mypy type checker for Tobiko project.
|
||||
vars:
|
||||
tox_envlist: mypy
|
Loading…
Reference in New Issue