Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (40 sloc) 1.464 kb
cb9513d @kristianmandrup made various small improvements
kristianmandrup authored
1 # encoding: utf-8
969d6a3 @aslakhellesoy Release 1.0.1
aslakhellesoy authored
2 CUCUMBER_RAILS_VERSION = Gem::Specification.load(File.dirname(__FILE__) + '/cucumber-rails.gemspec').version.version
4665b8e @aslakhellesoy Improving gem setup
aslakhellesoy authored
3 require 'rubygems'
28ee021 @urbanautomaton Multiple-gemfile testing and travis configuration
urbanautomaton authored
4 require 'bundler'
5 require 'bundler/setup'
6 require 'appraisal'
3deb79f @aslakhellesoy YARD workaround
aslakhellesoy authored
7 require 'rdoc' # https://github.com/lsegal/yard/commit/b861dcc2d7f7e1fbbed7b552ac2e4f7caf68bafa
85983bc @aslakhellesoy Remove tableish
aslakhellesoy authored
8 require 'rake/clean'
28ee021 @urbanautomaton Multiple-gemfile testing and travis configuration
urbanautomaton authored
9 require 'pathname'
4db8596 @aslakhellesoy Release 0.4.0.beta.1
aslakhellesoy authored
10 Bundler::GemHelper.install_tasks
1a1c42c @dbloete Initial commit
dbloete authored
11
ca9836d @aslakhellesoy Improved build system and cucumber features. Still work to do for 3.0
aslakhellesoy authored
12 $:.unshift(File.dirname(__FILE__) + '/lib')
82f1722 @aslakhellesoy Make sure our development rake tasks don't get loaded when they shouldn'...
aslakhellesoy authored
13 Dir["#{File.dirname(__FILE__)}/dev_tasks/*.rake"].sort.each { |ext| load ext }
8d03903 @chaffeqa updated js with capybara no longer 'require' capybara (since that is def...
chaffeqa authored
14
85983bc @aslakhellesoy Remove tableish
aslakhellesoy authored
15 CLEAN.include('doc', 'tmp')
8d03903 @chaffeqa updated js with capybara no longer 'require' capybara (since that is def...
chaffeqa authored
16
28ee021 @urbanautomaton Multiple-gemfile testing and travis configuration
urbanautomaton authored
17 task :default => :test
18
19 task :test => [:spec, :cucumber]
20
21 namespace :test do
22 desc "Run tests against all gemfiles"
23 task :all do
24 Rake::Task['appraisal'].invoke('test')
25 end
26
27 desc "Run tests against specified gemfile, e.g. rake test:gemfile[rails_3_0]"
28 task :gemfile, :name do |task, args|
29 unless args.name && Pathname.new("gemfiles/#{args.name}.gemfile").exist?
30 raise ArgumentError "You must provide the name of an existing Appraisal gemfile, e.g. 'rake test:gemfile[rails_3_2]'"
31 end
32 Rake::Task["appraisal:#{args.name}"].invoke('test')
8d03903 @chaffeqa updated js with capybara no longer 'require' capybara (since that is def...
chaffeqa authored
33 end
34 end
35
28ee021 @urbanautomaton Multiple-gemfile testing and travis configuration
urbanautomaton authored
36 namespace :gemfiles do
37 desc "Install dependencies for all gemfiles"
38 task :install do
39 ENV['BUNDLE_GEMFILE'] = "Gemfile.appraisal"
40 Rake::Task['appraisal:install'].invoke
41 end
42
43 task :clean do
e737bd8 @urbanautomaton Remove locks for all gemfiles
urbanautomaton authored
44 FileUtils.rm_rf("gemfiles/*")
28ee021 @urbanautomaton Multiple-gemfile testing and travis configuration
urbanautomaton authored
45 end
46
47 desc "Rebuild generated gemfiles and install dependencies"
48 task :rebuild => [:clean, :install]
49 end
Something went wrong with that request. Please try again.