Sha256: a643e097a5e93a85326b926fb62d3808b944ee6814e6ec700584cf81970bf102
Contents?: true
Size: 851 Bytes
Versions: 16
Compression:
Stored size: 851 Bytes
Contents
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'
Version data entries
16 entries across 16 versions & 3 rubygems