-
Notifications
You must be signed in to change notification settings - Fork 97
/
Rakefile
28 lines (24 loc) · 683 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
desc "Runs tests"
task :test do
Dir['test/*_test.rb'].each { |f| load f }
end
task :default => :test
gh = "rstacruz/sinatra-assetpack"
namespace :doc do
desc "Builds the documentation into doc/"
task :build do
system "curl -X POST
-d name=sinatra-assetpack
-d google_analytics=UA-20473929-1
-d travis=1
-d color=#777799
--data-urlencode [email protected]
http://documentup.com/compiled > doc/index.html".gsub!(/\s+/, ' ')
end
# http://github.com/rstacruz/git-update-ghpages
desc "Posts documentation to GitHub pages"
task :deploy => :build do
system "git update-ghpages #{gh} -i doc/"
end
end
task :doc => :'doc:build'