From 965973568bccd3ec3700e19eb3bc44d3d1b78e12 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Fri, 29 Apr 2016 14:49:52 +0200 Subject: [PATCH] update travis tests --- Gemfile | 22 +++++++++++++--------- Rakefile | 8 ++++++-- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index 8eaf398..2f4d4db 100644 --- a/Gemfile +++ b/Gemfile @@ -1,15 +1,19 @@ source 'https://rubygems.org' +puppetversion = ENV.key?('PUPPET_VERSION') ? "=#{ENV['PUPPET_VERSION']}" : ['>= 2.7'] + +gem 'puppet', puppetversion group :development, :test do - gem 'rake', :require => false - gem 'puppet-lint', :require => false - gem 'rspec-puppet', :require => false - gem 'puppetlabs_spec_helper', :require => false - gem 'rspec', '< 3.2.0', {"platforms"=>["ruby_18"]} + gem 'puppet-blacksmith' + gem 'puppet-lint' + gem 'puppetlabs_spec_helper' + gem 'rake', '>=0.9.2.2' + gem 'rspec-puppet' end -if puppetversion = ENV['PUPPET_GEM_VERSION'] - gem 'puppet', puppetversion, :require => false -else - gem 'puppet', :require => false +group :system_tests do + gem 'beaker-rspec', :require => false + gem 'serverspec', :require => false end + +gem 'hiera-puppet', :require => false diff --git a/Rakefile b/Rakefile index 469b83c..70223d9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,10 @@ require 'puppetlabs_spec_helper/rake_tasks' - -# Enable puppet-lint for all manifests: rake lint +require 'puppet_blacksmith/rake_tasks' require 'puppet-lint/tasks/puppet-lint' +require 'rake' +require 'rspec/core/rake_task' + PuppetLint.configuration.send("disable_80chars") # no warnings on lines over 80 chars. PuppetLint.configuration.ignore_paths = ["spec/fixtures/**/*.pp"] + +task :default => [:spec, :lint]