Skip to content

Commit

Permalink
add coveralls.io to travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaporozhets committed Mar 10, 2013
1 parent 473efc8 commit 96fbef6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
language: ruby
env:
- DB=mysql
- TRAVIS=true
before_install:
- sudo apt-get install libicu-dev -y
- gem install charlock_holmes -v="0.6.9"
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -143,6 +143,7 @@ group :development do
end

group :development, :test do
gem 'coveralls', require: false
gem 'rails-dev-tweaks'
gem 'spinach-rails', '0.2.0'
gem "rspec-rails", '2.12.2'
Expand Down
9 changes: 9 additions & 0 deletions Gemfile.lock
Expand Up @@ -89,6 +89,12 @@ GEM
colored (1.2)
colorize (0.5.8)
connection_pool (1.0.0)
coveralls (0.6.2)
colorize
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
thor
crack (0.3.1)
daemons (1.1.9)
database_cleaner (0.9.1)
Expand Down Expand Up @@ -348,6 +354,8 @@ GEM
redis-store (1.1.3)
redis (>= 2.2.0)
request_store (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
Expand Down Expand Up @@ -468,6 +476,7 @@ DEPENDENCIES
chosen-rails (= 0.9.8)
coffee-rails (~> 3.2.2)
colored
coveralls
database_cleaner
devise
draper
Expand Down
5 changes: 5 additions & 0 deletions features/support/env.rb
@@ -1,5 +1,10 @@
require 'simplecov' unless ENV['CI']

if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end

ENV['RAILS_ENV'] = 'test'
require './config/environment'

Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
@@ -1,5 +1,9 @@
require 'simplecov' unless ENV['CI']

if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
Expand Down

0 comments on commit 96fbef6

Please sign in to comment.