Skip to content

Commit 44c96a4

Browse files
committed
(FM-4049) Update to current msync configs [2c99161]
1 parent 4c3d835 commit 44c96a4

File tree

8 files changed

+30
-46
lines changed

8 files changed

+30
-46
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ spec/fixtures/
55
.vagrant/
66
.bundle/
77
coverage/
8+
log/
89
.idea/
910
*.iml

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.sync.yml

-13
This file was deleted.

.travis.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
---
22
sudo: false
33
language: ruby
4+
cache: bundler
45
bundler_args: --without system_tests
5-
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
6+
script: "bundle exec rake validate lint spec"
67
matrix:
78
fast_finish: true
89
include:
9-
- rvm: 1.8.7
10+
- rvm: 2.1.6
11+
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
12+
- rvm: 2.1.5
13+
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
14+
- rvm: 2.1.5
1015
env: PUPPET_GEM_VERSION="~> 3.0"
1116
- rvm: 1.9.3
1217
env: PUPPET_GEM_VERSION="~> 3.0"
13-
- rvm: 2.1.5
14-
env: PUPPET_GEM_VERSION="~> 3.0"
15-
- rvm: 2.1.5
16-
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
17-
- rvm: 2.1.6
18-
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
19-
- rvm: 1.8.7
20-
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
21-
- rvm: 1.8.7
22-
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
2318
notifications:
2419
email: false

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ If you already have those gems installed, make sure they are up-to-date:
159159
With all dependencies in place and up-to-date we can now run the tests:
160160

161161
```shell
162-
% rake spec
162+
% bundle exec rake spec
163163
```
164164

165165
This will execute all the [rspec tests](http://rspec-puppet.com/) tests
@@ -178,8 +178,8 @@ installed on your system.
178178
You can run them by issuing the following command
179179

180180
```shell
181-
% rake spec_clean
182-
% rspec spec/acceptance
181+
% bundle exec rake spec_clean
182+
% bundle exec rspec spec/acceptance
183183
```
184184

185185
This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml),

Gemfile

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source ENV['GEM_SOURCE'] || "https://rubygems.org"
22

33
def location_for(place, fake_version = nil)
4-
if place =~ /^(git:[^#]*)#(.*)/
4+
if place =~ /^(git[:@][^#]*)#(.*)/
55
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
66
elsif place =~ /^file:\/\/(.*)/
77
['>= 0', { :path => File.expand_path($1), :require => false }]
@@ -11,14 +11,16 @@ def location_for(place, fake_version = nil)
1111
end
1212

1313
group :development, :unit_tests do
14-
gem 'rspec-core', '3.1.7', :require => false
15-
gem 'puppetlabs_spec_helper', :require => false
16-
gem 'simplecov', :require => false
17-
gem 'puppet_facts', :require => false
18-
gem 'json', :require => false
14+
gem 'json', :require => false
15+
gem 'metadata-json-lint', :require => false
16+
gem 'puppet_facts', :require => false
17+
gem 'puppet-blacksmith', :require => false
18+
gem 'puppetlabs_spec_helper', :require => false
19+
gem 'rspec-puppet', '>= 2.3.2', :require => false
20+
gem 'simplecov', :require => false
1921
end
20-
2122
group :system_tests do
23+
gem 'beaker-puppet_install_helper', :require => false
2224
if beaker_version = ENV['BEAKER_VERSION']
2325
gem 'beaker', *location_for(beaker_version)
2426
end
@@ -27,12 +29,10 @@ group :system_tests do
2729
else
2830
gem 'beaker-rspec', :require => false
2931
end
30-
gem 'serverspec', :require => false
31-
gem 'beaker-puppet_install_helper', '~> 0.3', :require => false
32+
gem 'master_manipulator', :require => false
33+
gem 'serverspec', :require => false
3234
end
3335

34-
35-
3636
if facterversion = ENV['FACTER_GEM_VERSION']
3737
gem 'facter', facterversion, :require => false
3838
else
@@ -45,8 +45,4 @@ else
4545
gem 'puppet', :require => false
4646
end
4747

48-
if File.exists? "#{__FILE__}.local"
49-
eval(File.read("#{__FILE__}.local"), binding)
50-
end
51-
5248
# vim:ft=ruby

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
require 'puppetlabs_spec_helper/rake_tasks'
1+
require 'puppet_blacksmith/rake_tasks'
22
require 'puppet-lint/tasks/puppet-lint'
3+
require 'puppetlabs_spec_helper/rake_tasks'
34

45
PuppetLint.configuration.fail_on_warnings = true
56
PuppetLint.configuration.send('relative')

spec/spec_helper.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require 'puppetlabs_spec_helper/module_spec_helper'
22

3-
RSpec.configure do |config|
4-
config.mock_framework = :mocha
3+
# put local configuration and setup into spec_helper_local
4+
begin
5+
require 'spec_helper_local'
6+
rescue LoadError
57
end

0 commit comments

Comments
 (0)