use coveralls for travis

This commit is contained in:
Kyle Drake 2015-09-13 01:45:45 -07:00
parent faa738d6c1
commit 704a992f11
3 changed files with 24 additions and 6 deletions

View file

@ -31,6 +31,7 @@ gem 'io-extra', require: 'io/extra'
gem 'rye' gem 'rye'
gem 'dnsruby' gem 'dnsruby'
gem 'base32' gem 'base32'
gem 'coveralls', require: false
platform :mri, :rbx do platform :mri, :rbx do
gem 'magic' # sudo apt-get install file, For OSX: brew install libmagic gem 'magic' # sudo apt-get install file, For OSX: brew install libmagic

View file

@ -42,6 +42,12 @@ GEM
coderay (1.1.0) coderay (1.1.0)
columnize (0.8.9) columnize (0.8.9)
connection_pool (2.0.0) connection_pool (2.0.0)
coveralls (0.7.1)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
crack (0.4.2) crack (0.4.2)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
dante (0.2.0) dante (0.2.0)
@ -229,11 +235,15 @@ GEM
sysinfo (0.8.1) sysinfo (0.8.1)
drydock drydock
storable storable
term-ansicolor (1.3.2)
tins (~> 1.0)
thor (0.19.1)
thread (0.1.4) thread (0.1.4)
thread_safe (0.3.4) thread_safe (0.3.4)
tilt (1.4.1) tilt (1.4.1)
timecop (0.7.4) timecop (0.7.4)
timers (1.1.0) timers (1.1.0)
tins (1.6.0)
treetop (1.4.15) treetop (1.4.15)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
@ -266,6 +276,7 @@ DEPENDENCIES
bcrypt bcrypt
capybara_minitest_spec capybara_minitest_spec
cocaine cocaine
coveralls
dav4rack dav4rack
dnsruby dnsruby
erubis erubis

View file

@ -1,13 +1,19 @@
ENV['RACK_ENV'] = 'test' ENV['RACK_ENV'] = 'test'
raise 'Forget it.' if ENV['RACK_ENV'] == 'production' raise 'Forget it.' if ENV['RACK_ENV'] == 'production'
require 'simplecov' if ENV['TRAVIS']
SimpleCov.coverage_dir File.join('tests', 'coverage') require 'coveralls'
SimpleCov.start do Coveralls.wear!
add_filter "/migrations/" else
end
SimpleCov.command_name 'minitest' require 'simplecov'
SimpleCov.coverage_dir File.join('tests', 'coverage')
SimpleCov.start do
add_filter "/migrations/"
end
SimpleCov.command_name 'minitest'
end
require 'rack_session_access' require 'rack_session_access'
require './environment' require './environment'