forked from adhearsion/ruby_speech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (31 loc) · 873 Bytes
/
Rakefile
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
30
31
32
33
34
35
36
require 'bundler/gem_tasks'
Bundler::GemHelper.install_tasks
require 'rspec/core'
require 'rspec/core/rake_task'
require 'ci/reporter/rake/rspec'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = '--color'
end
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
spec.rspec_opts = '--color'
end
task :default => [:compile, :spec]
task :ci => ['ci:setup:rspec', :compile, :spec]
require 'yard'
YARD::Rake::YardocTask.new
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
Rake::JavaExtensionTask.new 'ruby_speech' do |ext|
ext.lib_dir = 'lib/ruby_speech'
ext.source_version = '1.6'
ext.target_version = '1.6'
end
else
require 'rake/extensiontask'
Rake::ExtensionTask.new 'ruby_speech' do |ext|
ext.lib_dir = 'lib/ruby_speech'
end
end