Sha256: 9e9835528982b05c538a71c5d196b9c893b6c18e3215a96ea55183040fd63bd1

Contents?: true

Size: 951 Bytes

Versions: 183

Compression:

Stored size: 951 Bytes

Contents

require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'metadata-json-lint/rake_task'

if RUBY_VERSION >= '1.9'
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
end

PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.relative = true
PuppetLint.configuration.ignore_paths = ['spec/**/*.pp', 'pkg/**/*.pp']

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 =~ %r{spec/fixtures}
  end
  Dir['templates/**/*.erb'].each do |template|
    sh "erb -P -x -T '-' #{template} | ruby -c"
  end
end

desc 'Run metadata_lint, lint, validate, and spec tests.'
task :test do
  [:metadata_lint, :lint, :validate, :spec].each do |test|
    Rake::Task[test].invoke
  end
end

Version data entries

183 entries across 183 versions & 3 rubygems

Version Path
simp-rake-helpers-5.22.1 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.22.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.21.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.20.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.19.2 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.19.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.18.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.17.1 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.17.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.16.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.15.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.14.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.13.2 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.13.1 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.13.0 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.12.7 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.12.6 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.12.5 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.12.4 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile
simp-rake-helpers-5.12.3 spec/lib/simp/rake/pupmod/fixtures/othermod/Rakefile