]>
Commit | Line | Data |
---|---|---|
8692bc27 | 1 | --- |
8692bc27 | 2 | sudo: false |
df5fbcce PB |
3 | language: nix |
4 | nix: 2.2.1 | |
5 | env: | |
6 | - NIX_PATH=nixpkgs=channel:nixos-19.09 | |
8692bc27 | 7 | |
8692bc27 | 8 | install: |
df5fbcce | 9 | - nix-env -iA pkgs.python37Packages.ansible-lint pkgs.python37Packages.ansible pkgs.shellcheck -f '<nixpkgs>' |
2acb3d4f | 10 | - nix-env -if ./dhall-1.26.1.nix |
8692bc27 GD |
11 | |
12 | # Check ansible version | |
13 | - ansible --version | |
14 | ||
f03052d5 FM |
15 | # Alias role name to mimic actual Galaxy deployment |
16 | - ln -s ansible-clever ../clever | |
17 | ||
8692bc27 GD |
18 | # Create ansible.cfg with correct roles_path |
19 | - printf '[defaults]\nroles_path=../' >ansible.cfg | |
20 | ||
21 | script: | |
351765fb | 22 | # Basic role syntax check & linting |
7485b189 | 23 | - ansible-lint . |
2867b6f2 | 24 | - shellcheck **/*.sh |
8b59c20a | 25 | - scripts/dhall_check.sh |
c99eb178 PB |
26 | # Run integration test |
27 | - mkdir -p ~/.local/bin | |
28 | - cp tests/fake.sh ~/.local/bin/clever | |
29 | - cp tests/fake.sh ~/.local/bin/git | |
351765fb PB |
30 | - ansible-playbook tests/test-simple-app.yml -i tests/inventory |
31 | - ansible-playbook tests/test-haskell-app.yml -i tests/inventory | |
32 | - ansible-playbook tests/test-configure-app.yml -i tests/inventory | |
791d2dcb | 33 | - ansible-playbook tests/test-scalability.yml -i tests/inventory |
8692bc27 GD |
34 | |
35 | notifications: | |
910f387d | 36 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB |
c99eb178 | 37 | webhooks: https://galaxy.ansible.com/api/v1/notifications/ |