From a6213719ae7830d03d9941ac3b82f388293e3e88 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Wed, 3 Jun 2020 16:45:42 -0400 Subject: [PATCH] Add linting step to the ci We will need to go through code and ignore any warnings we dont want to fix. --- .drone.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d88076c --- /dev/null +++ b/.drone.yml @@ -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"