]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blob - .travis.yml
6c68012aa55314df0afe167791acbd12be1ef55e
[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 python3 ansible ansible-lint
17 - nix-env -if ./dhall-1.34.0.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 # Basic webserver to fake a Kong
26 - |
27 ./tests/kong.py&
28
29 script:
30 # Basic role syntax check
31 - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
32 - ansible-lint .
33 - ansible-playbook tests/test.yml -i tests/inventory -D
34 - scripts/dhall_check.sh
35
36 notifications:
37 webhooks: https://galaxy.ansible.com/api/v1/notifications/
38 slack:
39 rooms:
40 - secure: cNAlklFQhu3CRi4Vp+U1veIbSvpAvqVNa0I9knRe8r5Xz6jczuxtKYVnP5m8q1iY38zx3ekjFn+2VdFQgr0twqUYGFMr+YbOWfLdcWxmA6BI29/6kdpoX0uihMEOl5uAyVm7hOiU/DfPxsbQMJeEFY4r/eYM+wErAtFC0c8bWt4oskjJJQPmr7DB/fOaefKkGoVjKElO6goVRWy2fHkGdldvV5EcQPdNW82ZY0w27e7fWm9Yv0D/Jr7Qu9i00UCdT3LyJ05cKVdaxxQOx0xjh+h0V4lN/CRfEBk8LQW3Ror+vnFgQHFkxSzY/MOASBvxZPMj/PFPCP1AwYlxz46dDHnaN2+tNc4Pdj/2qqZPjDW03KqjLRNY3fyfvjX2Yz+2da2hiF7WZReRcFZp0KGxLGTrpFFQ+JOEbYDvK0p4ZswNkDwnI9iYJoI7wntL614y4wIiCRxDR1/aTOGLr+M05WSdBhocL0x8IGVZNKa2yRpcgwlM35QMYSd7QFQmgB6MCIlqHxa1zGg124iepjL1SXp49SwQBI9k1mO4N7z469ZVyEdqydBMMQiiay2mP+fEBAM9gOboV4rMkCSQoMMED+MyiwGRioFor34/t7MQFM18ZoUemQAYRK7iAyCO7JnQOkilAVi+ZIfpiUrrBhBpz5JopeaFEIp4yAuJRyvWD0c=
41 on_success: change # default: always
42 on_failure: always # default: always
43 on_pull_requests: false