X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=82ddcec925c12bcee6327c1a0a55a11664418338;hb=d625a00570b54cd02f64ae6b11922ce9a7acaccf;hp=adf67fd597fbc1c5911bf89846adf1cba16c039d;hpb=86a4e060664c543281893e66e4fa96601ae7250e;p=github%2Ffretlink%2Fansible-clever.git diff --git a/.travis.yml b/.travis.yml index adf67fd..82ddcec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,25 @@ --- -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 + - nix-env -i python2.7-ansible-lint # 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 . notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ - slack: fretlink:n84rSINeJTLRjUTgXfB1aILX + slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB