summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLouis-Philippe VĂ©ronneau <pollito@riseup.net>2018-02-02 19:22:51 +0000
committerLouis-Philippe VĂ©ronneau <pollito@riseup.net>2018-02-02 19:22:51 +0000
commit9d783e91beb5356d5a6e2573292690d5998becac (patch)
tree8cf3d84d96c1c75d002d5ee0bc9efa567fcb6344 /Rakefile
parent90cb24c6e0916b27eae744e5f6ecaa84a180517c (diff)
parentd0b3003bd94aca6022823cb79c3eee5a84724623 (diff)
Merge branch 'ci-update' into 'master'
Update the CI tests See merge request shared-puppet-modules-group/tor!18
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile25
1 files changed, 8 insertions, 17 deletions
diff --git a/Rakefile b/Rakefile
index 85326bb..401002e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,19 +1,10 @@
-require 'puppetlabs_spec_helper/rake_tasks'
-require 'puppet-lint/tasks/puppet-lint'
-PuppetLint.configuration.send('disable_80chars')
-PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
+task :tests do
+ require 'puppetlabs_spec_helper/rake_tasks'
-desc "Validate manifests, templates, and ruby files"
-task :validate do
- Dir['manifests/**/*.pp'].each do |manifest|
- sh "puppet parser validate --noop #{manifest}"
- end
- Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
- sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
- end
- Dir['templates/**/*.erb'].each do |template|
- sh "erb -P -x -T '-' #{template} | ruby -c"
- end
-end
+ # run syntax checks on manifests, templates and hiera data
+ # also runs :metadata_lint
+ Rake::Task[:validate].invoke
-task :test => [:lint, :syntax , :validate, :spec]
+ # runs puppet-lint
+ Rake::Task[:lint].invoke
+end