]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blob - .travis.yml
1deea24b5532eadc9bb4211b2fddbdb9ed7de596
[github/fretlink/ansible-kong-app.git] / .travis.yml
1 ---
2 language: nix
3 nix: 2.3.1
4
5
6 # Use the new container infrastructure
7 sudo: false
8
9 install:
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
15 # Install ansible
16 - nix-env -i ansible ansible-lint
17 - nix-env -if ./dhall-1.26.1.nix
18
19 # Check ansible version
20 - ansible --version
21 - ansible-lint --version
22
23 # Create ansible.cfg with correct roles_path
24 - printf '[defaults]\nroles_path=../' >ansible.cfg
25
26 script:
27 # Basic role syntax check
28 - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
29 - ansible-lint .
30 - ansible-playbook tests/test.yml -i tests/inventory -C -D
31 - scripts/dhall_check.sh
32
33 notifications:
34 webhooks: https://galaxy.ansible.com/api/v1/notifications/