Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.414 kb
49aa449 @harlow Clean up Appraisals and Rake
harlow authored
1 # encoding: utf-8
2
3 require 'rubygems'
ec656e1 @gabebw bundler/setup is important.
gabebw authored
4 require 'bundler/setup'
35cfdde @gabebw bundler/gem_tasks is easier.
gabebw authored
5 require 'bundler/gem_tasks'
63187dd @gabebw Use Bundler gem conventions.
gabebw authored
6
49aa449 @harlow Clean up Appraisals and Rake
harlow authored
7 require 'rake'
14dfd9e @mjankowski run tests without Appraisal when BUNDLE_GEMFILE is set
mjankowski authored
8 require 'rspec/core/rake_task'
49aa449 @harlow Clean up Appraisals and Rake
harlow authored
9 require 'appraisal'
10
4925fd5 @mjankowski switch to use rspec for tests
mjankowski authored
11 RSpec::Core::RakeTask.new(:spec)
1650fc5 first commit
Tammer Saleh authored
12
49aa449 @harlow Clean up Appraisals and Rake
harlow authored
13 desc 'Default'
5f87f2a @dgalarza Fix travis and appraisals
dgalarza authored
14 task :default do
15 if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
16 Rake::Task['spec'].invoke
17 else
18 Rake::Task['appraise'].invoke
19 end
20 end
4dd575d @mjankowski use appraisal to test against both rails 3.1.0 and 3.0.10
mjankowski authored
21
5f87f2a @dgalarza Fix travis and appraisals
dgalarza authored
22 task :appraise do
23 exec 'appraisal install && appraisal rake'
4dd575d @mjankowski use appraisal to test against both rails 3.1.0 and 3.0.10
mjankowski authored
24 end
Something went wrong with that request. Please try again.