Skip to content

Commit

Permalink
run the rspec tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Dec 22, 2015
1 parent afb9a0f commit 2812fcb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ rvm:
- 2.0.0
- 2.1.6
- 2.2.2

script:
- rake test
- rake test_rspec
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ source 'http://rubygems.org'

gemspec

group :test do
gem 'rspec'
end

7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/*_test.rb']
end

task :test_rspec do
if !system('rspec', 'test/rspec_integration')
puts "RSpec tests failed"
exit 1
end
end

task :default => :test

0 comments on commit 2812fcb

Please sign in to comment.