Add linting step to the ci

We will need to go through code and ignore any warnings we dont want to fix.
This commit is contained in:
Patrick Marchand 2020-06-03 16:45:42 -04:00
parent e29e0e9e62
commit a6213719ae
1 changed files with 11 additions and 0 deletions

11
.drone.yml Normal file
View File

@ -0,0 +1,11 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: lint ansible scripts
image: pipelinecomponents/ansible-lint:latest
commands:
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"