]>
Commit | Line | Data |
---|---|---|
d213edd1 | 1 | --- |
6fc5ba3e | 2 | language: nix |
d213edd1 GD |
3 | |
4 | # Use the new container infrastructure | |
5 | sudo: false | |
6 | ||
d213edd1 GD |
7 | install: |
8 | # Install ansible | |
6fc5ba3e | 9 | - nix-env -i python2.7-ansible python2.7-ansible-lint |
d213edd1 GD |
10 | |
11 | # Check ansible version | |
12 | - ansible --version | |
13 | ||
14 | # Create ansible.cfg with correct roles_path | |
15 | - printf '[defaults]\nroles_path=../' >ansible.cfg | |
16 | ||
17 | script: | |
18 | # Basic role syntax check | |
19 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check | |
20 | - ansible-lint . | |
21 | - ansible-playbook tests/test.yml -i tests/inventory -C -D | |
22 | ||
23 | notifications: | |
24 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ |