summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-04-18 16:42:13 +0200
committervarac <varacanero@zeromail.org>2016-04-18 16:42:13 +0200
commit26302eff4d471af607c0a9a67ef3025f4a2542eb (patch)
tree8bd2089c4bb8aae7b9dab9976134c32565577512 /Rakefile
parent232047fdee815d9cf8c92b6853c5bc8039f2719c (diff)
initial Rakefile and Gemfile for tests
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 00000000..5a3936f8
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,20 @@
+require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet-lint/tasks/puppet-lint'
+require 'puppet-syntax/tasks/puppet-syntax'
+
+# redefine lint task with specific configuration
+Rake::Task[:lint].clear
+PuppetLint::RakeTask.new :lint do |config|
+ # Pattern of files to check, defaults to `**/*.pp`
+ config.pattern = ['puppet/modules/site_*/**/*.pp']
+ #config.ignore_paths = ['puppet/modules/apache/**/*.pp']
+ config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
+ config.disable_checks = ['documentation', '80chars']
+ config.fail_on_warnings = false
+end
+
+# rake syntax::* tasks
+PuppetSyntax.exclude_paths = ["**/vendor/**/*"]
+
+desc "Run all puppet checks required for CI"
+task :test => [:lint, :syntax , :validate, :spec]