aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2014-01-25 19:08:04 +0100
committerTomas Barton <barton.tomas@gmail.com>2014-01-25 19:08:04 +0100
commit2a0b58d6a8c2934ac2cd96364d6a3a6caee81a04 (patch)
tree40bd48a620d22d718e04b380f7fda0a7f0fc3505 /Rakefile
parent5486852c9e7a829209a640f031b6ee6f10bee239 (diff)
downloadpuppet-sshd-2a0b58d6a8c2934ac2cd96364d6a3a6caee81a04.tar.gz
puppet-sshd-2a0b58d6a8c2934ac2cd96364d6a3a6caee81a04.tar.bz2
testing infastructure, rspec tests
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..a9a4da9
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,22 @@
+require 'bundler'
+Bundler.require(:rake)
+
+require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet-lint/tasks/puppet-lint'
+require 'rspec-system/rake_task'
+
+PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
+PuppetLint.configuration.send("disable_80chars")
+
+# use librarian-puppet to manage fixtures instead of .fixtures.yml
+# offers more possibilities like explicit version management, forge downloads,...
+puppet_module='sshd'
+task :librarian_spec_prep do
+ sh "librarian-puppet install --path=spec/fixtures/modules/"
+ pwd = `pwd`.strip
+ unless File.directory?("#{pwd}/spec/fixtures/modules/#{puppet_module}")
+ sh "ln -s #{pwd} #{pwd}/spec/fixtures/modules/#{puppet_module}"
+ end
+end
+task :spec_prep => :librarian_spec_prep
+task :default => [:spec, :lint] \ No newline at end of file