Skip to content

Commit

Permalink
Fix dependency issues for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoneycutt committed Nov 3, 2016
1 parent 1ec7903 commit 45ffd8c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
29 changes: 17 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
---
sudo: false
branches:
only:
- master

language: ruby
bundler_args: --without acceptance
script:
- "bundle exec rake lint"
- "bundle exec rake syntax"
- "bundle exec rake spec SPEC_OPTS='--format documentation'"

sudo: false

before_install:
- 'gem update --system'
- 'gem update bundler'

bundler_args: --without acceptance

script: "SPEC_OPTS='--format documentation' bundle exec rake lint syntax spec"

after_success:
- git clone -q git://github.com/puppetlabs/ghpublisher.git .forge-releng
- .forge-releng/publish

rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- jruby-19mode

env:
- PUPPET_VERSION="~> 2.7.0"
- PUPPET_VERSION="~> 3.1.0"
Expand All @@ -31,6 +36,7 @@ env:

global:
- PUBLISHER_LOGIN=acidprime

matrix:
exclude:
- rvm: 1.9.3
Expand All @@ -56,13 +62,12 @@ matrix:
include:
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
# - rvm: 2.1.6
# env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"

notifications:
email: false
webhooks:
urls:
- 'https://webhooks.gitter.im/e/8936500cc6a369ff46ee'
- 'https://webhooks.gitter.im/e/8936500cc6a369ff46ee'
on_success: change
on_failure: always
on_start: false
47 changes: 23 additions & 24 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :development, :test do
if RUBY_VERSION < '1.9.3'
gem 'rake', '~> 10.5.0', :require => false
else
gem 'rake', :require => false
end
gem 'puppetlabs_spec_helper', :require => false
gem "rspec", '< 3.2.0'
gem "rspec-core", "3.1.7"
gem "rspec-puppet", "~> 2.1"
gem 'puppet-lint', :require => false
gem 'puppet-syntax', :require => false
end

group :acceptance do
gem "beaker", "> 2.0.0"
gem "beaker-rspec", ">= 5.1.0"
gem 'serverspec', :require => false
gem "vagrant-wrapper"
if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', '~> 3.0', :require => false
end

if facterversion = ENV['FACTER_GEM_VERSION']
Expand All @@ -27,10 +12,24 @@ else
gem 'facter', :require => false
end

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', '3.7.0', :require => false
gem 'puppetlabs_spec_helper', '>= 1.2.0'
gem 'rspec-puppet'
gem 'puppet-lint', '~> 2.0'

gem 'rspec', '~> 2.0', :require => false if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9'
gem 'rspec', :require => false if RUBY_VERSION >= '1.9'
gem 'rake', '~> 10.0', :require => false if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9'
gem 'rake', :require => false if RUBY_VERSION >= '1.9'
gem 'json', '<= 1.8', :require => false if RUBY_VERSION < '2.0.0'
gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION < '2.0.0'
gem 'metadata-json-lint', '0.0.11', :require => false if RUBY_VERSION < '1.9'
gem 'metadata-json-lint', :require => false if RUBY_VERSION >= '1.9'

group :acceptance do
gem 'beaker', '> 2.0.0', :require => false
gem 'beaker-rspec', '>= 5.1.0', :require => false
gem 'serverspec', :require => false
gem 'vagrant-wrapper', :require => false
end

# vim:ft=ruby

0 comments on commit 45ffd8c

Please sign in to comment.