Commit 96fbef60 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

add coveralls.io to travis builds

parent 473efc82
language: ruby language: ruby
env: env:
- DB=mysql - DB=mysql
- TRAVIS=true
before_install: before_install:
- sudo apt-get install libicu-dev -y - sudo apt-get install libicu-dev -y
- gem install charlock_holmes -v="0.6.9" - gem install charlock_holmes -v="0.6.9"
......
...@@ -143,6 +143,7 @@ group :development do ...@@ -143,6 +143,7 @@ group :development do
end end
group :development, :test do group :development, :test do
gem 'coveralls', require: false
gem 'rails-dev-tweaks' gem 'rails-dev-tweaks'
gem 'spinach-rails', '0.2.0' gem 'spinach-rails', '0.2.0'
gem "rspec-rails", '2.12.2' gem "rspec-rails", '2.12.2'
......
...@@ -89,6 +89,12 @@ GEM ...@@ -89,6 +89,12 @@ GEM
colored (1.2) colored (1.2)
colorize (0.5.8) colorize (0.5.8)
connection_pool (1.0.0) connection_pool (1.0.0)
coveralls (0.6.2)
colorize
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
thor
crack (0.3.1) crack (0.3.1)
daemons (1.1.9) daemons (1.1.9)
database_cleaner (0.9.1) database_cleaner (0.9.1)
...@@ -348,6 +354,8 @@ GEM ...@@ -348,6 +354,8 @@ GEM
redis-store (1.1.3) redis-store (1.1.3)
redis (>= 2.2.0) redis (>= 2.2.0)
request_store (1.0.5) request_store (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.12.0) rspec (2.12.0)
rspec-core (~> 2.12.0) rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0) rspec-expectations (~> 2.12.0)
...@@ -468,6 +476,7 @@ DEPENDENCIES ...@@ -468,6 +476,7 @@ DEPENDENCIES
chosen-rails (= 0.9.8) chosen-rails (= 0.9.8)
coffee-rails (~> 3.2.2) coffee-rails (~> 3.2.2)
colored colored
coveralls
database_cleaner database_cleaner
devise devise
draper draper
......
require 'simplecov' unless ENV['CI'] require 'simplecov' unless ENV['CI']
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end
ENV['RAILS_ENV'] = 'test' ENV['RAILS_ENV'] = 'test'
require './config/environment' require './config/environment'
......
require 'simplecov' unless ENV['CI'] 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' # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test' ENV["RAILS_ENV"] ||= 'test'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment