Sha256: 51065f42ce7f4d5c8cb6fa087be33e4bd2890270c5cb9a5dd9766e445185fc08
Contents?: true
Size: 980 Bytes
Versions: 3
Compression:
Stored size: 980 Bytes
Contents
include Rake::DSL if defined?(Rake::DSL) require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) $: << File.expand_path('../lib', __FILE__) require 'jasmine-headless-webkit' require 'jasmine/headless/task' Jasmine::Headless::Task.new PLATFORMS = %w{1.8.7 1.9.2 ree 1.9.3-rc1} def rvm_bundle(command = '') Bundler.with_clean_env do system %{bash -c 'unset BUNDLE_BIN_PATH && unset BUNDLE_GEMFILE && rvm #{PLATFORMS.join(',')} do bundle #{command}'} end end class SpecFailure < StandardError; end class BundleFailure < StandardError; end namespace :spec do desc "Run on three Rubies" task :platforms do rvm_bundle rvm_bundle "exec rspec spec" raise SpecError.new if $?.exitstatus != 0 end end task :default => [ 'spec:platforms', 'jasmine:headless' ] desc "Build the runner" task :build_runner do Dir.chdir 'ext/jasmine-webkit-specrunner' do system %{ruby extconf.rb} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jasmine-headless-webkit-0.7.3.2 | Rakefile |
jasmine-headless-webkit-0.7.3.1 | Rakefile |
jasmine-headless-webkit-0.7.2 | Rakefile |