Commit 6b803d700b71384b36e7c169de1c018ee7e93212

Authored by Antonio Terceiro
1 parent 68c659ec

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.
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
... ...