Permalink
Browse files

Rake spec:ci task which clean ups rbc files before running the suite

  • Loading branch information...
1 parent 522abaa commit 3a3d59be8961cffacb536826fc3d7840a1cd0e37 @markiz markiz committed Apr 20, 2011
Showing with 8 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +1 −0 Gemfile
  3. +6 −0 Rakefile
View
@@ -1,4 +1,4 @@
-script: "bundle exec rspec spec"
+script: "bundle exec rake spec:ci"
rvm:
- 1.8.7
- 1.9.2
View
@@ -29,5 +29,6 @@ end
group(:test) do
gem "rspec", ">=2.5.0"
+ gem "rake"
custom_gem "evented-spec", :git => "git://github.com/ruby-amqp/evented-spec.git", :branch => "master"
end
View
@@ -1,8 +1,14 @@
+require 'fileutils'
require 'rspec/core/rake_task'
desc "Run spec suite (uses Rspec2)"
RSpec::Core::RakeTask.new(:spec) { |t|}
+namespace :spec do
+ desc "Clean up rbx compiled files and run spec suite"
+ RSpec::Core::RakeTask.new(:ci) { |t| Dir.glob("**/*.rbc").each {|f| FileUtils.rm_f(f) } }
+end
+
desc "Run specs with RCov"
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true

0 comments on commit 3a3d59b

Please sign in to comment.