Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (21 sloc) 0.694 kb
bed886a Nathan Esquenazi Merge branch 'feature/json-encoding-integration'
nesquena authored
1 include Rake::DSL
2
eec7acb Nathan Esquenazi Initial commit to rabl
nesquena authored
3 require 'bundler'
4 Bundler::GemHelper.install_tasks
7517ad2 Arthur Chiu add watchr, add rake test
achiu authored
5
6 require 'rake/testtask'
7 Rake::TestTask.new(:test) do |test|
8 test.libs << 'lib' << 'test'
4c490a1 Nathan Esquenazi [Rakefile] Only run top-level tests by default
nesquena authored
9 test.pattern = 'test/*_test.rb'
e7a5815 Arthur Chiu fix uninitialized warnings
achiu authored
10 test.warning = true
7517ad2 Arthur Chiu add watchr, add rake test
achiu authored
11 test.verbose = true
a040956 Arthur Chiu pass rubygems option in rake test
achiu authored
12 test.ruby_opts = ['-rubygems']
7517ad2 Arthur Chiu add watchr, add rake test
achiu authored
13 end
fd8d255 Nathan Esquenazi Adds default rake task for travis
nesquena authored
14
dc5f6c9 Nathan Esquenazi [Rakefile] Add test:full which runs the fixture tests
nesquena authored
15 task "test:full" => :test do
809ba6d Nathan Esquenazi [sinatra fixture] Adds sinatra fixture tests
nesquena authored
16 Dir[File.dirname(__FILE__) + "/fixtures/{padrino_test,sinatra_test,rails2,rails3}"].each do |fixture|
17 puts "\n*** Running tests for #{File.basename(fixture)}... ***\n"
bcd68d9 Nathan Esquenazi Prepare for running integration tests on travis
nesquena authored
18 `cd #{fixture}; bundle install;`
56c3bb8 Nathan Esquenazi Fixes travis integration tests?
nesquena authored
19 `export BUNDLE_GEMFILE=#{fixture}/Gemfile` if ENV['TRAVIS']
dc5f6c9 Nathan Esquenazi [Rakefile] Add test:full which runs the fixture tests
nesquena authored
20 puts `cd #{fixture}; bundle exec rake test:rabl`
21 end
809ba6d Nathan Esquenazi [sinatra fixture] Adds sinatra fixture tests
nesquena authored
22 end
23
24 desc "Run tests for rabl"
a092746 Nathan Esquenazi Back to 'test' as the rake default
nesquena authored
25 task :default => :test
Something went wrong with that request. Please try again.