Added check to make sure Rcov is installed.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@16 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
parent
e6ba0f6860
commit
a22a8338f2
|
@ -5,6 +5,11 @@ namespace :spec do
|
||||||
t.spec_files = FileList['spec/**/*_spec.rb']
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
||||||
t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc']
|
t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc']
|
||||||
if RCOV_ENABLED
|
if RCOV_ENABLED
|
||||||
|
if `which rcov`.strip == ""
|
||||||
|
STDERR.puts "Please install rcov:"
|
||||||
|
STDERR.puts "sudo gem install relevance-rcov"
|
||||||
|
exit(1)
|
||||||
|
end
|
||||||
t.rcov = true
|
t.rcov = true
|
||||||
else
|
else
|
||||||
t.rcov = false
|
t.rcov = false
|
||||||
|
|
Loading…
Reference in New Issue