added ansible-lint to travis
authorChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:06:34 +0000 (14:06 +0100)
committerChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:06:34 +0000 (14:06 +0100)
.travis.yml
ansible/_lint_roles.yml [new file with mode: 0644]

index a12dac9..2fcd2c3 100644 (file)
@@ -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 (file)
index 0000000..4456b32
--- /dev/null
@@ -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