-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (23 loc) · 699 Bytes
/
Rakefile
File metadata and controls
29 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$:.push File.expand_path("../lib", __FILE__)
require "rubygems"
require "recognizer/version"
task :default => "test"
task :test do
require File.join(File.dirname(__FILE__), 'test', 'helper')
Dir['test/*_tests.rb'].each do |tests|
require File.join(File.dirname(__FILE__), tests)
end
end
task :clean do
system "rm -rf *.gem *.jar *.tar"
end
task :build => :clean do
system "gem build recognizer.gemspec"
system "warble executable jar"
system "tar -cf recognizer-#{Recognizer::VERSION}.tar recognizer.jar"
end
task :release => :build do
system "git tag 'v#{Recognizer::VERSION}'"
system "git push --tags"
system "gem push recognizer-#{Recognizer::VERSION}-java.gem"
end