Debian Codegraph @

Rakefile

raw
1 require 'puppetlabs_spec_helper/rake_tasks'
2 require 'puppet_blacksmith/rake_tasks'
3 require 'voxpupuli/release/rake_tasks'
4 require 'puppet-strings/tasks'
5
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 PuppetLint.configuration.send('disable_documentation')
12
13 exclude_paths = %w(
14 pkg/**/*
15 vendor/**/*
16 .vendor/**/*
17 spec/**/*
18 )
19 PuppetLint.configuration.ignore_paths = exclude_paths
20 PuppetSyntax.exclude_paths = exclude_paths
21
22 desc 'Run acceptance tests'
23 RSpec::Core::RakeTask.new(:acceptance) do |t|
24 t.pattern = 'spec/acceptance'
25 end
26
27 desc 'Run tests metadata_lint, release_checks'
28 task test: [
29 :metadata_lint,
30 :release_checks,
31 ]
32
33 begin
34 require 'github_changelog_generator/task'
35 GitHubChangelogGenerator::RakeTask.new :changelog do |config|
36 version = (Blacksmith::Modulefile.new).version
37 config.future_release = "#{version}"
38 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."
39 config.exclude_labels = %w{duplicate question invalid wontfix modulesync}
40 end
41 rescue LoadError
42 end
43 # vim: syntax=ruby