Commit f2aeb9ee7709c6ad5f6ee0a3f23fe855606653c1

Authored by Antonio Terceiro
Committed by Daniela Feitosa
1 parent cf3b3220

Add task to build snapshot Debian packages

This is useful for testing packages, since regular packages created with
`noosfero:deb` would have the same version number as the last release
ondes.

(cherry picked from commit 6b803d700b71384b36e7c169de1c018ee7e93212)
Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
lib/tasks/release.rake
... ... @@ -268,6 +268,15 @@ EOF
268 268 desc "Build Debian packages (shorcut)"
269 269 task :deb => :debian_packages
270 270  
  271 + desc 'Build Debian snapshot packages (for local testing)'
  272 + task 'deb:snapshot' => :package do
  273 + target = "pkg/noosfero-#{$version}"
  274 + Dir.chdir target do
  275 + sh 'dch', '-v', $version.gsub('-', '.'), 'snapshot'
  276 + end
  277 + Rake::Task['noosfero:deb'].invoke
  278 + end
  279 +
271 280 desc 'Test Debian package'
272 281 task 'debian:test' => :debian_packages do
273 282 Dir.chdir 'pkg' do
... ...