From 2c44ca6b36c5475b7da923e59d71c52b28893e0a Mon Sep 17 00:00:00 2001 From: juju4 Date: Sat, 9 Nov 2019 20:23:17 -0500 Subject: [PATCH] travis: add ansible-lint --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 64342a7..9591fa6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,8 +54,10 @@ script: - 'sudo docker run --detach --volume="${PWD%/*}":/etc/ansible/roles:ro ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"' - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible --version' + - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm pip install ansible-lint || true' # Ansible syntax check. + - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-lint /etc/ansible/roles/juju4.fprobe/tasks/main.yml || true' - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/juju4.fprobe/test/integration/default/default.yml --syntax-check' # Test role.