]>
Commit | Line | Data |
---|---|---|
d213edd1 | 1 | --- |
6fc5ba3e | 2 | language: nix |
c3564f47 PB |
3 | nix: 2.3.1 |
4 | ||
d213edd1 GD |
5 | |
6 | # Use the new container infrastructure | |
7 | sudo: false | |
8 | ||
d213edd1 | 9 | install: |
c3564f47 PB |
10 | # Update nix channels |
11 | - nix-channel --add https://nixos.org/channels/nixpkgs-19.09-darwin nixpkgs | |
12 | - nix-channel --remove nixpkgs-unstable | |
13 | - nix-channel --update | |
14 | ||
d213edd1 | 15 | # Install ansible |
a3c4b3d5 | 16 | - nix-env -i python3 ansible ansible-lint |
25bf64cb | 17 | - nix-env -if ./dhall-1.26.1.nix |
d213edd1 GD |
18 | |
19 | # Check ansible version | |
20 | - ansible --version | |
c3564f47 | 21 | - ansible-lint --version |
d213edd1 GD |
22 | |
23 | # Create ansible.cfg with correct roles_path | |
24 | - printf '[defaults]\nroles_path=../' >ansible.cfg | |
a3c4b3d5 PB |
25 | # Basic webserver to fake a Kong |
26 | - | | |
27 | ./tests/kong.py& | |
d213edd1 GD |
28 | |
29 | script: | |
30 | # Basic role syntax check | |
31 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check | |
32 | - ansible-lint . | |
a3c4b3d5 | 33 | - ansible-playbook tests/test.yml -i tests/inventory -D |
77e27a11 | 34 | - scripts/dhall_check.sh |
d213edd1 GD |
35 | |
36 | notifications: | |
37 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ |