From 43892ea54fd4a2902cf8128d1ddd74d829fab1b4 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Mon, 23 Oct 2017 23:59:41 +0200 Subject: [PATCH] feat: add test with many ansible version --- .kitchen.yml | 2 +- .travis.yml | 4 ++++ test/integration/bind/serverspec/bind_spec.rb | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.kitchen.yml b/.kitchen.yml index 03cc468..aaf4066 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -11,7 +11,7 @@ provisioner: require_ansible_omnibus: true require_chef_for_busser: true ansible_verbose: false - ansible_version: latest + ansible_version: <% if ENV['ANSIBLE_VERSION'] %><%= ENV['ANSIBLE_VERSION'] %><% else %><%= '2.2.3.0' %><% end %> ansible_inventory: ./test/integration/inventory platforms: diff --git a/.travis.yml b/.travis.yml index 3ce051d..f0b14b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,10 @@ sudo: required language: ruby +env: + - ANSIBLE_VERSION=2.2.3.0 + - ANSIBLE_VERSION=2.3.2.0 + - ANSIBLE_VERSION=2.4.0.0 services: - docker diff --git a/test/integration/bind/serverspec/bind_spec.rb b/test/integration/bind/serverspec/bind_spec.rb index 7f84dfb..2f7f078 100644 --- a/test/integration/bind/serverspec/bind_spec.rb +++ b/test/integration/bind/serverspec/bind_spec.rb @@ -2,6 +2,11 @@ require 'serverspec' set :backend, :exec +puts +puts "================================" +puts %x(ansible --version) +puts "================================" + %w[ bind9 cron