]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - .travis.yml
Merge pull request #69 from paulrbr-fl/documentation
[github/fretlink/ansible-clever.git] / .travis.yml
CommitLineData
8692bc27 1---
8692bc27 2sudo: false
df5fbcce 3language: nix
3d17c5eb 4nix: 2.3.4
df5fbcce 5env:
3d17c5eb 6 - NIX_PATH=nixpkgs=channel:nixos-20.03
8692bc27 7
8692bc27 8install:
3d17c5eb 9 - nix-env -i -f ./default.nix
8692bc27
GD
10
11 # Check ansible version
12 - ansible --version
13
f03052d5
FM
14 # Alias role name to mimic actual Galaxy deployment
15 - ln -s ansible-clever ../clever
16
8692bc27
GD
17 # Create ansible.cfg with correct roles_path
18 - printf '[defaults]\nroles_path=../' >ansible.cfg
19
20script:
351765fb 21 # Basic role syntax check & linting
7485b189 22 - ansible-lint .
2867b6f2 23 - shellcheck **/*.sh
8b59c20a 24 - scripts/dhall_check.sh
c99eb178
PB
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
351765fb
PB
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
791d2dcb 32 - ansible-playbook tests/test-scalability.yml -i tests/inventory
8692bc27
GD
33
34notifications:
910f387d 35 slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB
c99eb178 36 webhooks: https://galaxy.ansible.com/api/v1/notifications/