diff --git a/.travis.yml b/.travis.yml index 8258e5091298e67f961a80988c59af4a1791973c..9b81bd5ef83fadb3cc2af3a641bd340024c16364 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,14 @@ --- language: ruby -bundler_args: --without development +bundler_args: --without system_tests script: ["bundle exec rake validate", "bundle exec rake lint", "bundle exec fakeroot rake spec SPEC_OPTS='--format documentation'", "bundle exec rake metadata"] matrix: fast_finish: true include: - rvm: 1.8.7 - env: PUPPET_GEM_VERSION="~> 3.0" + env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0" + - rvm: 1.8.7 + env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0" - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.0.0 diff --git a/Gemfile b/Gemfile index c716faad7dca8d86b87064c1df486485119ae9e1..cd34befb03aae48a8a5b29a04061c5ba77b4cb11 100644 --- a/Gemfile +++ b/Gemfile @@ -1,12 +1,19 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" -group :development, :test do +group :development, :unit_tests do gem 'rake', :require => false - gem 'rspec-puppet', :require => false, :git => 'https://github.com/camptocamp/rspec-puppet.git', :branch => 'future-no-import' + gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git' gem 'puppetlabs_spec_helper', :require => false gem 'puppet-lint', :require => false - gem 'metadata-json-lint', :require => false + gem 'simplecov', :require => false gem 'puppet_facts', :require => false, :git => 'https://github.com/camptocamp/puppet_facts.git' + gem 'json', :require => false + gem 'metadata-json-lint', :require => false +end + +group :system_tests do + gem 'beaker-rspec', :require => false + gem 'serverspec', :require => false end if facterversion = ENV['FACTER_GEM_VERSION'] diff --git a/Rakefile b/Rakefile index 47d75d89c480339e3ff6a2ae1109e5493e26ef8b..5cf3aa81825b8ced1a3a3ca11d3947291234b4b6 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,7 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.fail_on_warnings +PuppetLint.configuration.send('relative') PuppetLint.configuration.send('disable_80chars') PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]