Rakefile 1.5 KB
Newer Older
liamjbennett's avatar
liamjbennett committed
1
require 'puppetlabs_spec_helper/rake_tasks'
2 3
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
4
require 'puppet-strings/tasks'
liamjbennett's avatar
liamjbennett committed
5

Bren Briggs's avatar
Bren Briggs committed
6
PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
7
PuppetLint.configuration.fail_on_warnings = true
8
PuppetLint.configuration.send('relative')
9
PuppetLint.configuration.send('disable_140chars')
10
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
11 12
PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
liamjbennett's avatar
liamjbennett committed
13

14 15 16
exclude_paths = %w(
  pkg/**/*
  vendor/**/*
17
  .vendor/**/*
18 19
  spec/**/*
)
20 21
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
liamjbennett's avatar
liamjbennett committed
22

23
desc 'Run acceptance tests'
24 25 26
RSpec::Core::RakeTask.new(:acceptance) do |t|
  t.pattern = 'spec/acceptance'
end
27

Tim Meusel's avatar
Tim Meusel committed
28
desc 'Run tests metadata_lint, release_checks'
29 30
task test: [
  :metadata_lint,
Tim Meusel's avatar
Tim Meusel committed
31
  :release_checks,
liamjbennett's avatar
liamjbennett committed
32
]
Tim Meusel's avatar
Tim Meusel committed
33 34 35 36 37 38 39 40 41 42 43

begin
  require 'github_changelog_generator/task'
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
    version = (Blacksmith::Modulefile.new).version
    config.future_release = "#{version}"
    config.header = "# Change log\n\nAll notable changes to this project will be documented in this file.\nEach new release typically also includes the latest modulesync defaults.\nThese should not impact the functionality of the module."
    config.exclude_labels = %w{duplicate question invalid wontfix modulesync}
  end
rescue LoadError
end
44
# vim: syntax=ruby