]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(FM-4049) Update to current msync configs [02da671] fm-4049-update-msync
authorDavid Schmitt <david@dasz.at>
Mon, 25 Jan 2016 14:05:57 +0000 (14:05 +0000)
committerDavid Schmitt <david@dasz.at>
Mon, 25 Jan 2016 14:05:57 +0000 (14:05 +0000)
.gitignore
.rspec [new file with mode: 0644]
.travis.yml
CONTRIBUTING.md
Gemfile
Rakefile
spec/spec_helper.rb

index b5db85e0512fa1835cde3a70a991cf559edc1a9b..31902774981f53470ce6b9f3cc13187f4015a53e 100644 (file)
@@ -5,5 +5,6 @@ spec/fixtures/
 .vagrant/
 .bundle/
 coverage/
+log/
 .idea/
 *.iml
diff --git a/.rspec b/.rspec
new file mode 100644 (file)
index 0000000..16f9cdb
--- /dev/null
+++ b/.rspec
@@ -0,0 +1,2 @@
+--color
+--format documentation
index 8b6adc2d2cf7291585c6b69f1dd668fcd79e8a33..c5688fae639199958faf328a38e7fa5edfb42a8d 100644 (file)
@@ -1,8 +1,9 @@
 ---
 sudo: false
 language: ruby
+cache: bundler
 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:
   fast_finish: true
   include:
index f1cbde4bbf76475f0e3b088000058629b8669558..bfeaa701cae5b418a5f863343e48765330df476e 100644 (file)
@@ -159,7 +159,7 @@ If you already have those gems installed, make sure they are up-to-date:
 With all dependencies in place and up-to-date we can now run the tests:
 
 ```shell
-% rake spec
+% bundle exec rake spec
 ```
 
 This will execute all the [rspec tests](http://rspec-puppet.com/) tests
@@ -178,8 +178,8 @@ installed on your system.
 You can run them by issuing the following command
 
 ```shell
-% rake spec_clean
-% rspec spec/acceptance
+% bundle exec rake spec_clean
+% bundle exec rspec spec/acceptance
 ```
 
 This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml),
diff --git a/Gemfile b/Gemfile
index 643d3f5d9e0baac476a5e1ac992d4f69fe0ff36a..391162ebceb858206a67ecc9feba748d97bbae03 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -1,7 +1,7 @@
 source ENV['GEM_SOURCE'] || "https://rubygems.org"
 
 def location_for(place, fake_version = nil)
-  if place =~ /^(git:[^#]*)#(.*)/
+  if place =~ /^(git[:@][^#]*)#(.*)/
     [fake_version, { :git => $1, :branch => $2, :require => false }].compact
   elsif place =~ /^file:\/\/(.*)/
     ['>= 0', { :path => File.expand_path($1), :require => false }]
@@ -18,7 +18,6 @@ group :development, :unit_tests do
   gem 'puppet_facts',            :require => false
   gem 'json',                    :require => false
 end
-
 group :system_tests do
   if beaker_version = ENV['BEAKER_VERSION']
     gem 'beaker', *location_for(beaker_version)
@@ -29,11 +28,8 @@ group :system_tests do
     gem 'beaker-rspec',  :require => false
   end
   gem 'serverspec',    :require => false
-  gem 'beaker-puppet_install_helper', :require => false
 end
 
-
-
 if facterversion = ENV['FACTER_GEM_VERSION']
   gem 'facter', facterversion, :require => false
 else
index 181157e6e0883b1959d974a4c3dc1579ad481901..35ce31140e74ad5283bed49bb108d8cb6b29a87e 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,6 @@
-require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet_blacksmith/rake_tasks'
 require 'puppet-lint/tasks/puppet-lint'
+require 'puppetlabs_spec_helper/rake_tasks'
 
 PuppetLint.configuration.fail_on_warnings = true
 PuppetLint.configuration.send('relative')
index 2c6f56649aeb15c37a49bf07898570e8ab51cf97..a7f5b4ecb3fc48da2b82573ebead00f446906ec3 100644 (file)
@@ -1 +1,7 @@
 require 'puppetlabs_spec_helper/module_spec_helper'
+
+# put local configuration and setup into spec_helper_local
+begin
+  require 'spec_helper_local'
+rescue LoadError
+end