]>
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: | |
22 | # Basic role syntax check | |
23 | - ansible-playbook tests/test.yml -i tests/inventory --syntax-check | |
7485b189 | 24 | - ansible-lint . |
2867b6f2 | 25 | - shellcheck **/*.sh |
8b59c20a | 26 | - scripts/dhall_check.sh |
8692bc27 GD |
27 | |
28 | notifications: | |
910f387d | 29 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB |