]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
Add publishing rake tasks
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Wed, 5 Aug 2015 11:07:53 +0000 (13:07 +0200)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Wed, 5 Aug 2015 11:07:53 +0000 (13:07 +0200)
Gemfile
Rakefile

diff --git a/Gemfile b/Gemfile
index 4f5c8da557b38f0737a6ed647d343c08f0483bad..0cb59337f154124116d24f05f27feb24e612de7d 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -21,6 +21,8 @@ group :development, :unit_tests do
   gem 'puppet-lint-file_source_rights-check',              :require => false
   gem 'puppet-lint-alias-check',                           :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
 
 group :system_tests do
index f87e6088627e5180b4de958f0b7ec1c9c8b6756c..adcac180c18512c5e636dfb6793dc633d4da9fa0 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -9,3 +9,15 @@ PuppetLint::RakeTask.new :lint do |config|
 end
 
 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