forked from rstacruz/sinatra-assetpack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
31 lines (26 loc) · 851 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
desc "Invokes the test suite in multiple RVM environments"
task :'test!' do
# Override this by adding RVM_TEST_ENVS=".." in .rvmrc
envs = ENV['RVM_TEST_ENVS'] || '1.9.2@sinatra,1.8.7@sinatra'
puts "* Testing in the following RVM environments: #{envs.gsub(',', ', ')}"
system "rvm #{envs} rake test" or abort
end
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
# http://github.com/rstacruz/reacco
desc "Builds the documentation into doc/"
task :build do
system "reacco -a --github #{gh} --css docsrc/style.css"
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'