summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2013-10-12 16:45:19 +0200
committerTomas Barton <barton.tomas@gmail.com>2013-10-12 16:46:20 +0200
commit9c2c7140876bbe20a9871543ba28b7522acdb213 (patch)
treedbaec693db7027496eb579d91fe3bbf65e8a31d3 /Rakefile
parent2f2627cd49c93f7455b2e6294e11e16be99a27ac (diff)
testing infrastructure
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 0d1f018..c0bab20 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,9 +1,21 @@
+require 'bundler'
+Bundler.require(:rake)
+
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
+require 'rspec-system/rake_task'
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
PuppetLint.configuration.send("disable_class_inherits_from_params_class")
PuppetLint.configuration.send("disable_80chars")
+# use librarian-puppet to manage fixtures instead of .fixtures.yml
+# offers more possibilities like explicit version management, forge downloads,...
+task :librarian_spec_prep do
+ sh "librarian-puppet install --path=spec/fixtures/modules/"
+end
+task :spec_prep => :librarian_spec_prep
+
+
task :default => [:spec, :lint]