summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-10-31 23:15:18 +0100
committermh <mh@immerda.ch>2016-10-31 23:15:18 +0100
commit4510682dff23142df5de4cfcc988e4319fcb73cd (patch)
tree4dadf74fb0dec723939f458232186520610f4dc0 /Rakefile
parent826fd077aca94acf6a8d41d643b8f06ed7fb7090 (diff)
add a default set of specs so that the minimum is tested
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index e136b8e..0c37d3b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,3 +5,13 @@ require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
+# 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/"
+ pwd = `pwd`.strip
+ unless File.directory?("#{pwd}/spec/fixtures/modules/tor")
+ sh "ln -s #{pwd} #{pwd}/spec/fixtures/modules/tor"
+ end
+end
+task :spec_prep => :librarian_spec_prep