mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
use coveralls for travis
This commit is contained in:
parent
faa738d6c1
commit
704a992f11
3 changed files with 24 additions and 6 deletions
1
Gemfile
1
Gemfile
|
@ -31,6 +31,7 @@ gem 'io-extra', require: 'io/extra'
|
|||
gem 'rye'
|
||||
gem 'dnsruby'
|
||||
gem 'base32'
|
||||
gem 'coveralls', require: false
|
||||
|
||||
platform :mri, :rbx do
|
||||
gem 'magic' # sudo apt-get install file, For OSX: brew install libmagic
|
||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -42,6 +42,12 @@ GEM
|
|||
coderay (1.1.0)
|
||||
columnize (0.8.9)
|
||||
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)
|
||||
safe_yaml (~> 1.0.0)
|
||||
dante (0.2.0)
|
||||
|
@ -229,11 +235,15 @@ GEM
|
|||
sysinfo (0.8.1)
|
||||
drydock
|
||||
storable
|
||||
term-ansicolor (1.3.2)
|
||||
tins (~> 1.0)
|
||||
thor (0.19.1)
|
||||
thread (0.1.4)
|
||||
thread_safe (0.3.4)
|
||||
tilt (1.4.1)
|
||||
timecop (0.7.4)
|
||||
timers (1.1.0)
|
||||
tins (1.6.0)
|
||||
treetop (1.4.15)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
|
@ -266,6 +276,7 @@ DEPENDENCIES
|
|||
bcrypt
|
||||
capybara_minitest_spec
|
||||
cocaine
|
||||
coveralls
|
||||
dav4rack
|
||||
dnsruby
|
||||
erubis
|
||||
|
|
|
@ -1,13 +1,19 @@
|
|||
ENV['RACK_ENV'] = 'test'
|
||||
raise 'Forget it.' if ENV['RACK_ENV'] == 'production'
|
||||
|
||||
require 'simplecov'
|
||||
SimpleCov.coverage_dir File.join('tests', 'coverage')
|
||||
SimpleCov.start do
|
||||
add_filter "/migrations/"
|
||||
end
|
||||
if ENV['TRAVIS']
|
||||
require 'coveralls'
|
||||
Coveralls.wear!
|
||||
else
|
||||
|
||||
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 './environment'
|
||||
|
|
Loading…
Add table
Reference in a new issue