]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - .travis.yml
Fix `clever_addons` example
[github/fretlink/ansible-clever.git] / .travis.yml
CommitLineData
8692bc27 1---
8692bc27 2sudo: false
df5fbcce 3language: nix
3d17c5eb 4nix: 2.3.4
df5fbcce 5env:
ff807544
PB
6 - CUSTOM_NIX_PATH=nixpkgs=channel:nixos-20.03
7
8# Travis nix integration will install nix AFTER the environment variables are set
9# and the nix installer will overide NIX_PATH variable thus we need to re-export it
10before_install:
11 - export NIX_PATH="$CUSTOM_NIX_PATH"
8692bc27 12
8692bc27 13install:
3d17c5eb 14 - nix-env -i -f ./default.nix
8692bc27
GD
15
16 # Check ansible version
17 - ansible --version
18
f03052d5
FM
19 # Alias role name to mimic actual Galaxy deployment
20 - ln -s ansible-clever ../clever
21
8692bc27
GD
22 # Create ansible.cfg with correct roles_path
23 - printf '[defaults]\nroles_path=../' >ansible.cfg
24
25script:
351765fb 26 # Basic role syntax check & linting
7485b189 27 - ansible-lint .
2867b6f2 28 - shellcheck **/*.sh
8b59c20a 29 - scripts/dhall_check.sh
c99eb178
PB
30 # Run integration test
31 - mkdir -p ~/.local/bin
32 - cp tests/fake.sh ~/.local/bin/clever
33 - cp tests/fake.sh ~/.local/bin/git
fd2e4788 34 - ansible-playbook -i tests/inventory tests/test-all.yml
8692bc27
GD
35
36notifications:
910f387d 37 slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB
c99eb178 38 webhooks: https://galaxy.ansible.com/api/v1/notifications/