Skip to content

Commit a486b1d

Browse files
author
Bharat Kunwar
authored
Add ansible lint
1 parent cfa2d26 commit a486b1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addons:
1313

1414
install:
1515
# Install ansible
16-
- pip install ansible
16+
- pip install ansible ansible-lint
1717

1818
# Check ansible version
1919
- ansible --version
@@ -27,6 +27,11 @@ install:
2727
script:
2828
# Basic role syntax check
2929
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
30+
31+
# Run Ansible lint against the role
32+
- ansible-lint tasks/main.yml
33+
34+
# Test the custom filters
3035
- ansible-playbook tests/filter.yml -i tests/inventory -i tests/inventory-mock-groups
3136

3237
notifications:

0 commit comments

Comments
 (0)