Sha256: 5689f54aed7ff3466bd129568983bc03edc01087cbc8c0e62cddbafe2c2627a7
Contents?: true
Size: 1.53 KB
Versions: 5
Compression:
Stored size: 1.53 KB
Contents
require 'bundler/gem_tasks' require 'English' require 'git/version' default_tasks = [] desc 'Run Unit Tests' task :test do sh 'ruby bin/test' # You can run individual test files (or multiple files) from the command # line with: # # $ bin/test tests/units/test_archive.rb # # $ bin/test tests/units/test_archive.rb tests/units/test_object.rb end default_tasks << :test unless RUBY_PLATFORM == 'java' # # YARD documentation for this project can NOT be built with JRuby. # This project uses the redcarpet gem which can not be installed on JRuby. # require 'yard' YARD::Rake::YardocTask.new CLEAN << '.yardoc' CLEAN << 'doc' default_tasks << :yard require 'yardstick/rake/verify' Yardstick::Rake::Verify.new(:'yardstick:coverage') do |t| t.threshold = 50 t.require_exact_threshold = false end default_tasks << :'yardstick:coverage' desc 'Run yardstick to check yard docs' task :yardstick do sh "yardstick 'lib/**/*.rb'" end # Do not include yardstick as a default task for now since there are too many # warnings. Will work to get the warnings down before re-enabling it. # # default_tasks << :yardstick end default_tasks << :build task default: default_tasks desc 'Build and install the git gem and run a sanity check' task :'test:gem' => :install do output = `ruby -e "require 'git'; g = Git.open('.'); puts g.log.size"`.chomp raise 'Gem test failed' unless $CHILD_STATUS.success? raise 'Expected gem test to return an integer' unless output =~ /^\d+$/ puts 'Gem Test Succeeded' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
git-1.17.2 | Rakefile |
git-1.17.1 | Rakefile |
git-1.16.0 | Rakefile |
git-1.15.0 | Rakefile |
git-1.14.0 | Rakefile |