diff options
author | mh <mh@immerda.ch> | 2016-10-31 23:15:18 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-10-31 23:15:18 +0100 |
commit | 4510682dff23142df5de4cfcc988e4319fcb73cd (patch) | |
tree | 4dadf74fb0dec723939f458232186520610f4dc0 /Rakefile | |
parent | 826fd077aca94acf6a8d41d643b8f06ed7fb7090 (diff) |
add a default set of specs so that the minimum is tested
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |