aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2015-08-05 13:07:53 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2015-08-05 13:07:53 +0200
commitb3771c83f8b420f108fea8b018738270b66be8e2 (patch)
treea0d153b447357792c7960e0996f43c705e578703
parente897dc36bc7aad957693ef02d8f06c76d9204e9c (diff)
downloadpuppet-dhcp-b3771c83f8b420f108fea8b018738270b66be8e2.tar.gz
puppet-dhcp-b3771c83f8b420f108fea8b018738270b66be8e2.tar.bz2
Add publishing rake tasks
-rw-r--r--Gemfile2
-rw-r--r--Rakefile12
2 files changed, 14 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 4f5c8da..0cb5933 100644
--- 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
diff --git a/Rakefile b/Rakefile
index f87e608..adcac18 100644
--- 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