forked from shrinerb/shrine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
43 lines (37 loc) · 911 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
37
38
39
40
41
42
43
require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"
test_files = FileList["test/**/*_test.rb"]
test_files -= ["test/s3_test.rb"] unless ENV["S3"]
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = test_files
end
task :default => :test
RDoc::Task.new do |t|
t.rdoc_dir = "www/build/rdoc"
t.options += [
"--line-numbers",
"--title", "Shrine: Toolkit for file uploads",
"--markup", "markdown",
"--format", "hanna", # requires the hanna-nouveau gem
"--main", "README.md",
"--visibility", "public",
]
t.rdoc_files.add Dir[
"README.md",
"CHANGELOG.md",
"lib/**/*.rb",
"doc/*.md",
"doc/release_notes/*.md",
]
end
namespace :website do
task :build do
sh "cd www; bundle exec jekyll build; cd .."
sh "rake rdoc"
end
task :publish => :build do
sh "git subtree push --prefix www/build origin gh-pages"
end
end