update travis tests
This commit is contained in:
Родитель
076dc1f111
Коммит
965973568b
22
Gemfile
22
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
|
||||
|
|
8
Rakefile
8
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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче