From 577a9a612fa50f0dbe473bbe1a4653bb0e42c9de Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 5 Jun 2011 07:25:55 -0400 Subject: [PATCH] travis updates --- .travis.yml | 2 +- Rakefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8496d1c..f00c4cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ rvm: - 1.8.7 - 1.9.2 - ree - +script: "bundle exec spec" diff --git a/Rakefile b/Rakefile index 52e1b8f..b953835 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,12 @@ require 'bundler' Bundler::GemHelper.install_tasks +desc "Run on this Ruby" +task :spec do + system %{rspec spec} + exit $?.exitstatus +end + namespace :spec do desc "Run on three Rubies" task :platforms do @@ -10,7 +16,7 @@ namespace :spec do %w{1.8.7 1.9.2 ree}.each do |version| puts "Switching to #{version}" system %{rvm #{version}} - system %{bundle exec rspec spec} + system %{rspec spec} if $?.exitstatus != 0 fail = true break