Permalink
Browse files

adding travis ci badge and rake integration

  • Loading branch information...
1 parent c88b2ea commit dd7cd5d0dbe240acd807e9923e7405f2ea2ae628 @marcinwyszynski committed Apr 23, 2012
Showing with 19 additions and 0 deletions.
  1. +2 −0 README.md
  2. +16 −0 Rakefile
  3. +1 −0 cabalist.gemspec
View
@@ -1,3 +1,5 @@
+[![Build Status](https://secure.travis-ci.org/marcinwyszynski/cabalist.png?branch=master)](http://travis-ci.org/marcinwyszynski/cabalist)
+
Introduction to Cabalist
------------------------
View
@@ -1 +1,17 @@
require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc "Run specs"
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "./spec/**/*_spec.rb"
+end
+
+desc "Generate code coverage"
+RSpec::Core::RakeTask.new(:coverage) do |t|
+ t.pattern = "./spec/**/*_spec.rb"
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec']
+end
View
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.add_dependency('kaminari', '>= 0.13.0')
s.add_dependency('leveldb-ruby')
s.add_dependency('padrino-helpers')
+ s.add_dependency('rake')
s.add_dependency('sinatra')
# Gem development dependencies

0 comments on commit dd7cd5d

Please sign in to comment.