Add systemd module, required by rabbitmq
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / Rakefile
1 require 'puppetlabs_spec_helper/rake_tasks'
2 require 'puppet-lint/tasks/puppet-lint'
3
4 Rake::Task[:lint].clear
5 PuppetLint::RakeTask.new :lint do |config|
6   config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
7   config.disable_checks = ['140chars']
8   config.fail_on_warnings = true
9 end
10
11 PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
12
13 # Publishing tasks
14 unless RUBY_VERSION =~ /^1\./
15   require 'puppet_blacksmith'
16   require 'puppet_blacksmith/rake_tasks'
17 end
18
19 begin
20   require 'github_changelog_generator/task'
21   GitHubChangelogGenerator::RakeTask.new :changelog do |config|
22     version = (Blacksmith::Modulefile.new).version
23     config.future_release = "v#{version}" if version =~ /^\d+\.\d+.\d+$/
24     config.header = "# Changelog\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 affect the functionality of the module."
25     config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
26     config.user = 'camptocamp'
27     config.project = 'puppet-systemd'
28   end
29 rescue LoadError
30 end