diff --git a/.travis.yml b/.travis.yml index c5155a8..d2d04c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ python: "2.7" env: - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.2.1.0 - ANSIBLE_VERSION=2.2.0.0 + - ANSIBLE_VERSION=2.1.4 - ANSIBLE_VERSION=2.1.3 - ANSIBLE_VERSION=2.1.2 - ANSIBLE_VERSION=2.1.1.0 @@ -18,31 +20,6 @@ env: - ANSIBLE_VERSION=2.0.0.1 - ANSIBLE_VERSION=2.0.0.0 - ANSIBLE_VERSION=1.9.6 - - ANSIBLE_VERSION=1.9.5 - - ANSIBLE_VERSION=1.9.4 - - ANSIBLE_VERSION=1.9.3 - - ANSIBLE_VERSION=1.9.2 - - ANSIBLE_VERSION=1.9.1 - - ANSIBLE_VERSION=1.9.0.1 - - ANSIBLE_VERSION=1.8.4 - - ANSIBLE_VERSION=1.8.3 - - ANSIBLE_VERSION=1.8.2 - - ANSIBLE_VERSION=1.8.1 - - ANSIBLE_VERSION=1.8 - - ANSIBLE_VERSION=1.7.2 - - ANSIBLE_VERSION=1.7.1 - - ANSIBLE_VERSION=1.7 - - ANSIBLE_VERSION=1.6.9 - - ANSIBLE_VERSION=1.6.8 - - ANSIBLE_VERSION=1.6.7 - - ANSIBLE_VERSION=1.6.6 - - ANSIBLE_VERSION=1.6.5 - - ANSIBLE_VERSION=1.6.4 - - ANSIBLE_VERSION=1.6.3 - - ANSIBLE_VERSION=1.6.2 - - ANSIBLE_VERSION=1.6.10 - - ANSIBLE_VERSION=1.6.1 - - ANSIBLE_VERSION=1.6 branches: only: @@ -53,7 +30,8 @@ before_install: install: # Install Ansible. - - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install --no-binary ansible ansible; else pip install --no-binary ansible ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi + - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi script: # Check the role/playbook's syntax. @@ -69,6 +47,8 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) + - if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml || true; fi + notifications: email: false hipchat: diff --git a/meta/main.yml b/meta/main.yml index b34a4bf..95864af 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: company: Oefenweb.nl B.V. description: Set up (the latest version of) virtualenv(wrapper) in Debian-like systems license: MIT - min_ansible_version: 1.6 + min_ansible_version: 1.9.6 platforms: - name: Ubuntu versions: diff --git a/tests/test.yml b/tests/test.yml index 42ff951..175bd08 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -2,7 +2,7 @@ --- - hosts: localhost connection: local - sudo: true + become: true pre_tasks: - include: pre.yml roles: diff --git a/tests/vagrant.yml b/tests/vagrant.yml index b2ed956..6127b2f 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -2,7 +2,7 @@ --- - hosts: all remote_user: vagrant - sudo: true + become: true pre_tasks: - include: pre.yml roles: