Sha256: d1f42c1e4e611a87358a88f08125bc9164034f9f34174e78e466054392c4f648

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

# encoding: utf-8
CUCUMBER_RAILS_VERSION = Gem::Specification.load(File.dirname(__FILE__) + '/cucumber-rails.gemspec').version.version
require 'rubygems'
require 'bundler/setup'
Bundler::GemHelper.install_tasks

$:.unshift(File.dirname(__FILE__) + '/lib')
Dir["#{File.dirname(__FILE__)}/dev_tasks/*.rake"].sort.each { |ext| load ext }


# Needed for selenium browser
# See http://about.travis-ci.org/docs/user/selenium-setup/
task :travis do
  ["rspec spec", "rake cucumber"].each do |cmd|
    puts "Starting to run #{cmd}..."
    system("export DISPLAY=:99.0 && bundle exec #{cmd}")
    raise "#{cmd} failed!" unless $?.exitstatus == 0
  end
end

if ENV['TRAVIS']
  task :default => :travis
else
  task :default => :cucumber
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-rails-1.1.1 Rakefile
cucumber-rails-1.1.0 Rakefile
cucumber-rails-1.0.6 Rakefile