From: Christian Pointner Date: Sun, 23 Dec 2018 13:06:34 +0000 (+0100) Subject: added ansible-lint to travis X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=1b5eef9254e6b7191a726e65a750e2d8862d1600;p=noc.git added ansible-lint to travis --- 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