Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use a rake task for running tests on Travis

  • Loading branch information...
commit aa944d61f3993056999aedd8612b2244fc0c7a4c 1 parent bd1a24d
@sethvargo sethvargo authored
Showing with 15 additions and 3 deletions.
  1. +3 −0  .travis.yml
  2. +12 −3 Rakefile
View
3  .travis.yml
@@ -2,6 +2,9 @@ rvm:
- 1.9.3
bundler_args: --jobs 7 --without docs
+
+script: bundle exec rake travis:ci
+
notifications:
hipchat:
rooms:
View
15 Rakefile
@@ -1,7 +1,16 @@
require 'bundler/setup'
require 'bundler/gem_tasks'
+
require 'rspec/core/rake_task'
-require 'yard'
+RSpec::Core::RakeTask.new(:unit)
+
+require 'rubocop/rake_task'
+desc 'Run Ruby style checks'
+Rubocop::RakeTask.new(:style)
+
+namespace :travis do
+ desc 'Run tests on Travis'
+ task ci: ['style', 'unit']
+end
-RSpec::Core::RakeTask.new(:spec)
-YARD::Rake::YardocTask.new
+task default: ['travis:ci']
Please sign in to comment.
Something went wrong with that request. Please try again.