(FM-4049) Update to current msync configs [2c99161]
This commit is contained in:
parent
35b5dfc04c
commit
2c76f60cf2
8 changed files with 29 additions and 31 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,5 +5,6 @@ spec/fixtures/
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.bundle/
|
.bundle/
|
||||||
coverage/
|
coverage/
|
||||||
|
log/
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
|
|
2
.rspec
Normal file
2
.rspec
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
--color
|
||||||
|
--format documentation
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
spec/spec_helper.rb:
|
|
||||||
unmanaged: true
|
|
15
.travis.yml
15
.travis.yml
|
@ -1,20 +1,19 @@
|
||||||
---
|
---
|
||||||
sudo: false
|
sudo: false
|
||||||
language: ruby
|
language: ruby
|
||||||
|
cache: bundler
|
||||||
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 lint spec"
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- rvm: 1.8.7
|
- rvm: 2.1.6
|
||||||
|
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
|
||||||
|
- rvm: 2.1.5
|
||||||
|
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
|
||||||
|
- rvm: 2.1.5
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0"
|
env: PUPPET_GEM_VERSION="~> 3.0"
|
||||||
- rvm: 1.9.3
|
- rvm: 1.9.3
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0"
|
env: PUPPET_GEM_VERSION="~> 3.0"
|
||||||
- rvm: 2.1.5
|
|
||||||
env: PUPPET_GEM_VERSION="~> 3.0"
|
|
||||||
- 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:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
27
Gemfile
27
Gemfile
|
@ -1,7 +1,7 @@
|
||||||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||||
|
|
||||||
def location_for(place, fake_version = nil)
|
def location_for(place, fake_version = nil)
|
||||||
if place =~ /^(git:[^#]*)#(.*)/
|
if place =~ /^(git[:@][^#]*)#(.*)/
|
||||||
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
||||||
elsif place =~ /^file:\/\/(.*)/
|
elsif place =~ /^file:\/\/(.*)/
|
||||||
['>= 0', { :path => File.expand_path($1), :require => false }]
|
['>= 0', { :path => File.expand_path($1), :require => false }]
|
||||||
|
@ -11,21 +11,16 @@ def location_for(place, fake_version = nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :unit_tests do
|
group :development, :unit_tests do
|
||||||
# rspec must be v2 for ruby 1.8.7
|
gem 'json', :require => false
|
||||||
if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9'
|
gem 'metadata-json-lint', :require => false
|
||||||
gem 'rspec', '~> 2.0'
|
gem 'puppet_facts', :require => false
|
||||||
else
|
gem 'puppet-blacksmith', :require => false
|
||||||
gem 'rspec-core', '3.1.7', :require => false
|
gem 'puppetlabs_spec_helper', :require => false
|
||||||
end
|
gem 'rspec-puppet', '>= 2.3.2', :require => false
|
||||||
gem 'puppetlabs_spec_helper', :require => false
|
gem 'simplecov', :require => false
|
||||||
gem 'puppet-lint', :require => false
|
|
||||||
gem 'simplecov', :require => false
|
|
||||||
gem 'puppet_facts', :require => false
|
|
||||||
gem 'json', :require => false
|
|
||||||
gem 'pry', :require => false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
group :system_tests do
|
group :system_tests do
|
||||||
|
gem 'beaker-puppet_install_helper', :require => false
|
||||||
if beaker_version = ENV['BEAKER_VERSION']
|
if beaker_version = ENV['BEAKER_VERSION']
|
||||||
gem 'beaker', *location_for(beaker_version)
|
gem 'beaker', *location_for(beaker_version)
|
||||||
end
|
end
|
||||||
|
@ -34,12 +29,10 @@ group :system_tests do
|
||||||
else
|
else
|
||||||
gem 'beaker-rspec', :require => false
|
gem 'beaker-rspec', :require => false
|
||||||
end
|
end
|
||||||
|
gem 'master_manipulator', :require => false
|
||||||
gem 'serverspec', :require => false
|
gem 'serverspec', :require => false
|
||||||
gem 'beaker-puppet_install_helper', :require => false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if facterversion = ENV['FACTER_GEM_VERSION']
|
if facterversion = ENV['FACTER_GEM_VERSION']
|
||||||
gem 'facter', facterversion, :require => false
|
gem 'facter', facterversion, :require => false
|
||||||
else
|
else
|
||||||
|
|
3
Rakefile
3
Rakefile
|
@ -1,5 +1,6 @@
|
||||||
require 'puppetlabs_spec_helper/rake_tasks'
|
require 'puppet_blacksmith/rake_tasks'
|
||||||
require 'puppet-lint/tasks/puppet-lint'
|
require 'puppet-lint/tasks/puppet-lint'
|
||||||
|
require 'puppetlabs_spec_helper/rake_tasks'
|
||||||
|
|
||||||
PuppetLint.configuration.fail_on_warnings = true
|
PuppetLint.configuration.fail_on_warnings = true
|
||||||
PuppetLint.configuration.send('relative')
|
PuppetLint.configuration.send('relative')
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
require 'puppetlabs_spec_helper/module_spec_helper'
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
||||||
|
|
||||||
RSpec.configure do |config|
|
# put local configuration and setup into spec_helper_local
|
||||||
config.mock_with :rspec
|
begin
|
||||||
|
require 'spec_helper_local'
|
||||||
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
3
spec/spec_helper_local.rb
Normal file
3
spec/spec_helper_local.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
RSpec.configure do |config|
|
||||||
|
config.mock_with :rspec
|
||||||
|
end
|
Loading…
Reference in a new issue