Permalink
Browse files

CHORE: Removed rspec rake task - now executing directly in travis

  • Loading branch information...
1 parent a7334c0 commit e120a0a35a7cd2322a11e63aca9ee5d5ec23d45e @rudionrails committed Sep 30, 2012
Showing with 5 additions and 31 deletions.
  1. +1 −1 .travis.yml
  2. +4 −30 Rakefile
View
@@ -1,6 +1,6 @@
language: ruby
-script: "rake"
+script: "rspec"
rvm:
- 1.8.7
View
@@ -1,42 +1,16 @@
$LOAD_PATH.unshift( 'lib' )
-
require 'bundler'
-Bundler::GemHelper.install_tasks
+
+# Run stuff in the examples folder
+desc "Run examples"
task :examples do
require 'benchmark'
seconds = Benchmark.realtime do
- Dir[ './examples/*.rb' ].sort.each do |file|
- begin
- puts "\n*** Running #{file}"
-
- require file
- rescue Exception => e
- puts "#{e.class}: #{e.message}:\n\t#{e.backtrace.join("\n\t")}"
-
- exit 1
- end
- end
+ Dir[ './examples/*.rb' ].each { |file| puts "\n\n=== Running #{file} ==="; require file }
end
puts "\n\t[ Examples took #{seconds} seconds to run ]"
end
-# RSpec
-begin
- require 'rspec/core/rake_task'
-
- desc "Run specs"
- RSpec::Core::RakeTask.new do |t|
- t.rspec_opts = %w(--color --format progress --order random)
- # t.ruby_opts = %w(-w)
- end
-rescue LoadError
- task :spec do
- abort "`gem install rspec` in order to run tests"
- end
-end
-
-task :default => :spec
-

0 comments on commit e120a0a

Please sign in to comment.