Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 63aa1e35e48a186ce64c7d41f2693554d3eb6934 1 parent 629478f
@markiz markiz authored
Showing with 8 additions and 2 deletions.
  1. +1 −1  .travis.yml
  2. +1 −1  Gemfile
  3. +6 −0 Rakefile
View
2  .travis.yml
@@ -1,4 +1,4 @@
-script: "bundle exec rspec spec"
+script: "bundle exec rake spec:ci"
rvm:
- 1.8.7
- 1.9.2
View
2  Gemfile
@@ -18,7 +18,7 @@ gem "eventmachine"
group(:test) do
gem "rspec", ">=2.0.0"
-
+ gem "rake"
# gem "amqp-spec", :git => "git://github.com/ruby-amqp/amqp-spec.git", :branch => "master"
custom_gem "evented-spec", :git => "git://github.com/ruby-amqp/evented-spec.git", :branch => "master"
end
View
6 Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.