Commit d9260cf3 authored by paz's avatar paz

Merge branch 'specs-disable-bundler-via-env-var' into 'master'

specs: Disable bundler via env var (+ minor indentation fix)

See merge request schleuder/schleuder!123
parents d435c737 be5fcdbd
ENV['SCHLEUDER_ENV'] ||= 'test'
ENV['SCHLEUDER_CONFIG'] = 'spec/schleuder.yml'
ENV["SCHLEUDER_LIST_DEFAULTS"] = "etc/list-defaults.yml"
require 'bundler/setup'
Bundler.setup
if ENV['USE_BUNDLER'] != 'false'
require 'bundler/setup'
Bundler.setup
end
# We need to do this before requiring any other code
# Check env if we want to run code coverage analysis
if ENV['CHECK_CODE_COVERAGE'] != 'false'
require 'simplecov'
require 'simplecov-console'
SimpleCov::Formatter::Console.table_options = {max_width: 400}
SimpleCov.formatter = SimpleCov::Formatter::Console
SimpleCov.start
require 'simplecov'
require 'simplecov-console'
SimpleCov::Formatter::Console.table_options = {max_width: 400}
SimpleCov.formatter = SimpleCov::Formatter::Console
SimpleCov.start
end
require 'schleuder'
require 'schleuder/cli'
......
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