forked from ruby-git/ruby-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (21 loc) · 739 Bytes
/
Rakefile
File metadata and controls
28 lines (21 loc) · 739 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
require 'rdoc/task'
require 'rubygems'
require "#{File.expand_path(File.dirname(__FILE__))}/lib/git/version"
task :default => :test
desc "Upload Docs"
task :upload_docs do |t|
system('rsync -rv --delete doc/ git.rubyforge.org:/var/www/gforge-projects/git')
end
desc "Run Unit Tests"
task :test do |t|
sh 'git config --global user.email "git@example.com"' if `git config user.email`.empty?
sh 'git config --global user.name "GitExample"' if `git config user.name`.empty?
$VERBOSE = true
require File.dirname(__FILE__) + '/tests/all_tests.rb'
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "ruby-git #{Git::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end