]>
Commit | Line | Data |
---|---|---|
1 | --- | |
2 | sudo: false | |
3 | language: nix | |
4 | nix: 2.3.4 | |
5 | env: | |
6 | - NIX_PATH=nixpkgs=channel:nixos-20.03 | |
7 | ||
8 | install: | |
9 | - nix-env -i -f ./default.nix | |
10 | ||
11 | # Check ansible version | |
12 | - ansible --version | |
13 | ||
14 | # Alias role name to mimic actual Galaxy deployment | |
15 | - ln -s ansible-clever ../clever | |
16 | ||
17 | # Create ansible.cfg with correct roles_path | |
18 | - printf '[defaults]\nroles_path=../' >ansible.cfg | |
19 | ||
20 | script: | |
21 | # Basic role syntax check & linting | |
22 | - ansible-lint . | |
23 | - shellcheck **/*.sh | |
24 | - scripts/dhall_check.sh | |
25 | # Run integration test | |
26 | - mkdir -p ~/.local/bin | |
27 | - cp tests/fake.sh ~/.local/bin/clever | |
28 | - cp tests/fake.sh ~/.local/bin/git | |
29 | - ansible-playbook tests/test-simple-app.yml -i tests/inventory | |
30 | - ansible-playbook tests/test-haskell-app.yml -i tests/inventory | |
31 | - ansible-playbook tests/test-configure-app.yml -i tests/inventory | |
32 | - ansible-playbook tests/test-scalability.yml -i tests/inventory | |
33 | ||
34 | notifications: | |
35 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB | |
36 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ |