Skip to content
This repository was archived by the owner on Sep 11, 2022. It is now read-only.

Commit 3a3d59b

Browse files
committed
Rake spec:ci task which clean ups rbc files before running the suite
1 parent 522abaa commit 3a3d59b

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
script: "bundle exec rspec spec"
1+
script: "bundle exec rake spec:ci"
22
rvm:
33
- 1.8.7
44
- 1.9.2

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ end
2929

3030
group(:test) do
3131
gem "rspec", ">=2.5.0"
32+
gem "rake"
3233
custom_gem "evented-spec", :git => "git://github.com/ruby-amqp/evented-spec.git", :branch => "master"
3334
end

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
require 'fileutils'
12
require 'rspec/core/rake_task'
23

34
desc "Run spec suite (uses Rspec2)"
45
RSpec::Core::RakeTask.new(:spec) { |t|}
56

7+
namespace :spec do
8+
desc "Clean up rbx compiled files and run spec suite"
9+
RSpec::Core::RakeTask.new(:ci) { |t| Dir.glob("**/*.rbc").each {|f| FileUtils.rm_f(f) } }
10+
end
11+
612
desc "Run specs with RCov"
713
RSpec::Core::RakeTask.new(:rcov) do |t|
814
t.rcov = true

0 commit comments

Comments
 (0)