Rakefile in yard-0.8.1 vs Rakefile in yard-0.8.2
- old
+ new
@@ -1,35 +1,29 @@
require File.dirname(__FILE__) + '/lib/yard'
require File.dirname(__FILE__) + '/lib/yard/rubygems/specification'
require 'rbconfig'
YARD::VERSION.replace(ENV['YARD_VERSION']) if ENV['YARD_VERSION']
-WINDOWS = (RbConfig::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false) rescue false
-SUDO = WINDOWS ? '' : 'sudo'
task :default => :specs
desc "Builds the gem"
task :gem do
Gem::Builder.new(eval(File.read('yard.gemspec'))).build
end
desc "Installs the gem"
task :install => :gem do
- sh "#{SUDO} gem install yard-#{YARD::VERSION}.gem --no-rdoc --no-ri"
+ sh "gem install yard-#{YARD::VERSION}.gem --no-rdoc --no-ri"
end
-desc 'Run spec suite'
-task :suite do
- ['ruby186', 'ruby18', 'ruby19', 'ruby192', 'ruby193', 'jruby'].each do |ruby|
- 2.times do |legacy|
- next if legacy == 1 && ruby =~ /^jruby|186/
- puts "Running specs with #{ruby}#{legacy == 1 ? ' (in legacy mode)' : ''}"
- cmd = "#{ruby} -S rake specs SUITE=1 #{legacy == 1 ? 'LEGACY=1' : ''}"
- puts cmd
- system(cmd)
- end
- end
+begin
+require 'rvm-tester'
+RVM::Tester::TesterTask.new do |t|
+ t.bundle_install = false # don't need to do this all the time
+ t.verbose = true
+end
+rescue LoadError
end
task :travis_ci do
status = 0
ENV['SUITE'] = '1'