From 1b5eef9254e6b7191a726e65a750e2d8862d1600 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 23 Dec 2018 14:06:34 +0100 Subject: [PATCH] added ansible-lint to travis --- .travis.yml | 10 +++++++++- ansible/_lint_roles.yml | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ansible/_lint_roles.yml diff --git a/.travis.yml b/.travis.yml index a12dac9..2fcd2c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,16 @@ addons: - libimage-magick-perl - libtext-markdown-discount-perl - libtext-typography-perl + - python + - python-pip -script: make -C doc +install: + - pip install ansible + - pip install ansible-lint + +script: + - cd ansible; ansible-lint _lint_roles.yml + - make -C doc deploy: provider: pages diff --git a/ansible/_lint_roles.yml b/ansible/_lint_roles.yml new file mode 100644 index 0000000..4456b32 --- /dev/null +++ b/ansible/_lint_roles.yml @@ -0,0 +1,21 @@ +--- +## +## This playbook is only used by ansible-lint to test all roles +## +## TODO: uncomment roles once the syntax check runs through or document a reason +## why they are not included in this list +## +- hosts: invalid_host_name_by_design + roles: + - base +# - debian-installer +# - localconfig +# - openwrt/image +# - preseed +# - reboot-and-wait +# - usb-install +# - vm/grub +# - vm/guest +# - vm/host +# - vm/install +# - vm/network -- 1.7.10.4