Skip to content
Browse files

add test and release Rake tasks

  • Loading branch information...
1 parent 5d24ba1 commit 87902bc1270421f4e55d68b1ffe1a1543ee1e938 @rtomayko rtomayko committed May 21, 2008
Showing with 20 additions and 0 deletions.
  1. +20 −0 Rakefile
View
20 Rakefile
@@ -73,12 +73,32 @@ end
desc 'Build the peg-markdown extension'
task :build => "lib/markdown.#{DLEXT}"
+desc 'Run unit tests'
task 'test:unit' => [ :build ] do |t|
ruby 'test.rb'
end
+desc 'Run conformance tests'
task 'test:conformance' => [ 'submodule:update', :build ] do |t|
chdir('peg-markdown/MarkdownTest_1.0.3') do
sh "./MarkdownTest.pl --script=../../bin/rpeg-markdown --tidy"
end
end
+
+desc 'Run unit and conformance tests'
+task :test => [ 'test:unit', 'test:conformance' ]
+
+
+# ==========================================================
+# Rubyforge
+# ==========================================================
+
+PKGNAME = "pkg/rpeg-markdown-#{VERS}"
+
+desc 'Publish new release to rubyforge'
+task :release => [ "#{PKGNAME}.gem", "#{PKGNAME}.tar.gz" ] do |t|
+ sh <<-end
+ rubyforge add_release wink rpeg-markdown #{VERS} #{PKGNAME}.gem &&
+ rubyforge add_file wink rpeg-markdown #{VERS} #{PKGNAME}.tar.gz
+ end
+end

0 comments on commit 87902bc

Please sign in to comment.
Something went wrong with that request. Please try again.