Skip to content

Commit

Permalink
Run ansible linter only on /roles and /playbooks
Browse files Browse the repository at this point in the history
Useful mainly for in-repo CI config for other projects,
where we don't want to run ansible linters on every review

Change-Id: I62522ef2a6aef35ffddb03d90762cdb218db8b24
  • Loading branch information
Jarek Łukow authored and kklimonda committed Mar 22, 2018
1 parent 4fa0784 commit 0cdbfdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zuul.d/infra-jobs.yaml
Expand Up @@ -83,6 +83,9 @@
- Juniper/contrail-project-config
- Juniper/zuul-jobs
- Juniper/contrail-zuul-jobs
files:
- ^roles/.*
- ^playbooks/.*
vars:
tox_envlist: linters
tox_environment:
Expand Down
10 changes: 10 additions & 0 deletions zuul.d/project.yaml
Expand Up @@ -9,6 +9,11 @@
- contrail-infra-packaging-integration-centos-7
- contrail-infra-packaging-integration-ubuntu-xenial
- zuul-jobs-linters
- noop:
irrelevant-files:
- ^roles/.*
- ^playbooks/.*
- ^tests/.*
gate:
jobs:
- contrail-infra-base-integration-centos-7
Expand All @@ -18,4 +23,9 @@
- contrail-infra-packaging-integration-centos-7
- contrail-infra-packaging-integration-ubuntu-xenial
- zuul-jobs-linters
- noop:
irrelevant-files:
- ^roles/.*
- ^playbooks/.*
- ^tests/.*

0 comments on commit 0cdbfdd

Please sign in to comment.