aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: 14ab868b529eae5894a46235d4d8934a6757c3b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
language: nix
nix: 2.3.1


# Use the new container infrastructure
sudo: false

install:
  # Update nix channels
  - nix-channel --add https://nixos.org/channels/nixpkgs-19.09-darwin nixpkgs
  - nix-channel --remove nixpkgs-unstable
  - nix-channel --update

  # Install ansible
  - nix-env -i python3 ansible ansible-lint
  - nix-env -if ./dhall-1.26.1.nix

  # Check ansible version
  - ansible --version
  - ansible-lint --version

  # Create ansible.cfg with correct roles_path
  - printf '[defaults]\nroles_path=../' >ansible.cfg
  # Basic webserver to fake a Kong
  - |
    ./tests/kong.py&

script:
  # Basic role syntax check
  - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
  - ansible-lint .
  - ansible-playbook tests/test.yml -i tests/inventory -D
  - scripts/dhall_check.sh

notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/