X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=720eade94f5248aa1cf8355158fddc550f748aba;hb=7b4cc6d8d6f2a4e327111d78b0ef1973faf892c1;hp=49e7e1c5bc478a84a11323fef9c37d658f15151d;hpb=8692bc2704f2a38890c93577e8f6743e611d5308;p=github%2Ffretlink%2Fansible-clever.git diff --git a/.travis.yml b/.travis.yml index 49e7e1c..720eade 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,26 @@ --- -language: python -python: "2.7" +language: nix -# Use the new container infrastructure sudo: false -# Install ansible -addons: - apt: - packages: - - python-pip - install: - # Install ansible - - pip install ansible + - nix-env -i python2.7-ansible python2.7-ansible-lint + - nix-env -if ./dhall-1.21.0.nix # Check ansible version - ansible --version + # Alias role name to mimic actual Galaxy deployment + - ln -s ansible-clever ../clever + # Create ansible.cfg with correct roles_path - printf '[defaults]\nroles_path=../' >ansible.cfg script: # Basic role syntax check - ansible-playbook tests/test.yml -i tests/inventory --syntax-check + - ansible-lint . + - scripts/dhall_check.sh notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ + slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB