Merge pull request #160 from puppetlabs/modulesync_updates

Modulesync updates
This commit is contained in:
Bryan Jen 2015-05-07 14:12:10 -07:00
commit 3bfcceb17f
3 changed files with 12 additions and 15 deletions

View file

@ -1,4 +1,5 @@
--- ---
sudo: false
language: ruby language: ruby
bundler_args: --without system_tests bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
@ -6,12 +7,12 @@ matrix:
fast_finish: true fast_finish: true
include: include:
- rvm: 1.8.7 - rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0" env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
- rvm: 1.9.3 - rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0" env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0 - rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
notifications: notifications:
email: false email: false

16
Gemfile
View file

@ -11,24 +11,18 @@ def location_for(place, fake_version = nil)
end end
group :development, :unit_tests do group :development, :unit_tests do
gem 'rake', :require => false
gem 'rspec-core', '3.1.7', :require => false gem 'rspec-core', '3.1.7', :require => false
gem 'rspec-puppet', '~> 1.0', :require => false
gem 'puppetlabs_spec_helper', :require => false gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'simplecov', :require => false gem 'simplecov', :require => false
gem 'puppet_facts', :require => false gem 'puppet_facts', :require => false
gem 'json', :require => false gem 'json', :require => false
gem 'pry', :require => false
end end
beaker_version = ENV['BEAKER_VERSION']
beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
group :system_tests do group :system_tests do
if beaker_version if beaker_version = ENV['BEAKER_VERSION']
gem 'beaker', *location_for(beaker_version) gem 'beaker', *location_for(beaker_version)
end end
if beaker_rspec_version if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
gem 'beaker-rspec', *location_for(beaker_rspec_version) gem 'beaker-rspec', *location_for(beaker_rspec_version)
else else
gem 'beaker-rspec', :require => false gem 'beaker-rspec', :require => false
@ -36,14 +30,16 @@ group :system_tests do
gem 'serverspec', :require => false gem 'serverspec', :require => false
end end
if facterversion = ENV['FACTER_GEM_VERSION'] if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', *location_for(facterversion) gem 'facter', facterversion, :require => false
else else
gem 'facter', :require => false gem 'facter', :require => false
end end
if puppetversion = ENV['PUPPET_GEM_VERSION'] if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', *location_for(puppetversion) gem 'puppet', puppetversion, :require => false
else else
gem 'puppet', :require => false gem 'puppet', :require => false
end end

View file

@ -1,7 +1,7 @@
require 'puppetlabs_spec_helper/rake_tasks' require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint' require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('relative') PuppetLint.configuration.send('relative')
PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_class_inherits_from_params_class') PuppetLint.configuration.send('disable_class_inherits_from_params_class')