Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring testing matrix up to date #61

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 35 additions & 48 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,50 @@
sudo: false
rvm:
- '2.4'
- '2.3'
- '2.2'
- '2.1'
- '2.0'
- '1.9'
notifications:
email:
- [email protected]
env:
- PUPPET_VERSION="~> 4.2.0"
- PUPPET_VERSION="~> 4.1.0"
- PUPPET_VERSION="~> 4.0.0"
- PUPPET_VERSION="~> 3.7.0"
- PUPPET_VERSION="~> 3.6.0"
- PUPPET_VERSION="~> 3.5.0"
- PUPPET_VERSION="~> 3.4.0"
- PUPPET_VERSION="~> 3.3.0"
- PUPPET_VERSION="~> 3.2.0"
- PUPPET_VERSION="~> 3.1.0"
- PUPPET_VERSION="~> 3.0.0"
- PUPPET_VERSION="~> 2.7.0"

before_script:
- puppet --version
- PUPPET_VERSION="~> 5.3.0"
- PUPPET_VERSION="~> 5.2.0"
- PUPPET_VERSION="~> 5.1.0"
- PUPPET_VERSION="~> 5.0.0"
- PUPPET_VERSION="~> 4.10.0"
- PUPPET_VERSION="~> 4.9.0"
- PUPPET_VERSION="~> 4.8.0"
- PUPPET_VERSION="~> 3.8.0"

matrix:
# Puppet < 3.5.0 is broken under ruby 2.1 https://tickets.puppetlabs.com/browse/PUP-1243
# Puppet < 3.8.0 is broken under ruby 2.2 https://tickets.puppetlabs.com/browse/PUP-3796
exclude:
- rvm: '2.1'
env: PUPPET_VERSION="~> 2.7.0"
- rvm: '2.1'
env: PUPPET_VERSION="~> 3.0.0"
- rvm: '2.1'
env: PUPPET_VERSION="~> 3.1.0"
- rvm: '2.1'
env: PUPPET_VERSION="~> 3.2.0"
- rvm: '2.1'
env: PUPPET_VERSION="~> 3.3.0"
- rvm: '2.1'
env: PUPPET_VERSION="~> 3.4.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 2.7.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.0.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.1.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.2.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.3.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.4.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.5.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.6.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.7.0"
# monkeypatches failing for Puppet 3.8 on Ruby 2.1 through 2.4
- rvm: '2.4'
env: PUPPET_VERSION="~> 3.8.0"
- rvm: '2.3'
env: PUPPET_VERSION="~> 3.8.0"
- rvm: '2.2'
env: PUPPET_VERSION="~> 3.8.0"
# Newer Puppet versions do not support old Ruby versions
- rvm: '2.0'
env: PUPPET_VERSION="~> 4.8.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 4.9.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 4.10.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 5.0.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 5.1.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 5.2.0"
- rvm: '2.0'
env: PUPPET_VERSION="~> 5.3.0"

before_script:
- puppet --version

deploy:
provider: rubygems
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ RSpec::Core::RakeTask.new
Cucumber::Rake::Task.new(:features) do |t|
require 'puppet'
puppet_version = Puppet::version.gsub("~>","").split(".").first.to_i
tags = (2..4).select {|i| i != puppet_version}.map{|i| "--tags @puppet#{puppet_version},~@puppet#{i}"}
tags = (2..5).select {|i| i != puppet_version}.map{|i| "--tags '@puppet#{puppet_version} and not @puppet#{i}'"}
# don't run githubtarball scenarios in Travis, they easily fail with rate limit exceeded
tags << "--tags ~@github" if ENV['TRAVIS']=='true'
tags << "--tags 'not @github'" if ENV['TRAVIS']=='true'
t.cucumber_opts = tags.join(" ")
end

Expand Down
2 changes: 1 addition & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

Given(/^there is no Puppetfile$/) do
in_current_dir do
in_current_directory do
fail "Puppetfile exists at #{File.expand_path('Puppetfile')}" if (File.exist?('Puppetfile'))
end
end
Expand Down