Skip to content
Snippets Groups Projects
Commit dd20711e authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Add publishing rake tasks

parent 97217360
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,8 @@ group :development, :unit_tests do ...@@ -21,6 +21,8 @@ group :development, :unit_tests do
gem 'puppet-lint-file_source_rights-check', :require => false gem 'puppet-lint-file_source_rights-check', :require => false
gem 'puppet-lint-alias-check', :require => false gem 'puppet-lint-alias-check', :require => false
gem 'rspec-puppet-facts', :require => false gem 'rspec-puppet-facts', :require => false
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/raphink/github-changelog-generator.git', :branch => 'dev/all_patches' if RUBY_VERSION !~ /^1.8/
gem 'puppet-blacksmith', :require => false if RUBY_VERSION !~ /^1.8/
end end
group :system_tests do group :system_tests do
......
...@@ -9,3 +9,15 @@ PuppetLint::RakeTask.new :lint do |config| ...@@ -9,3 +9,15 @@ PuppetLint::RakeTask.new :lint do |config|
end end
PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
# Publishing tasks
unless RUBY_VERSION =~ /^1\.8/
require 'puppet_blacksmith'
require 'puppet_blacksmith/rake_tasks'
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
m = Blacksmith::Modulefile.new
config.future_release = m.version
config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s"
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment