move call to ansible lint to /ansible/lint.sh
authorChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 21:20:07 +0000 (22:20 +0100)
committerChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 21:20:20 +0000 (22:20 +0100)
.travis.yml
ansible/lint.sh [new file with mode: 0755]

index 6a90aab..5b34819 100644 (file)
@@ -18,9 +18,7 @@ install:
   - ansible-lint --version
 
 script:
-  - pushd ./ansible
-  - ansible-lint _lint_roles.yml
-  - popd
+  - ansible/lint.sh
   - make -C doc
 
 deploy:
diff --git a/ansible/lint.sh b/ansible/lint.sh
new file mode 100755 (executable)
index 0000000..17326af
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd "${BASH_SOURCE%/*}/"
+exec ansible-lint _lint_roles.yml