enabled parallel testing; turn off certificate verification on CI mode

This commit is contained in:
HoneyryderChuck 2018-06-11 19:04:59 +01:00
parent e666dfb85d
commit b2cc1c8d4a
2 changed files with 2 additions and 6 deletions

View File

@ -4,7 +4,7 @@ gem install bundler -v="1.16.1" --no-doc --conservative
cd /home && touch Gemfile.lock && \
rm Gemfile.lock && \
bundle install --quiet --jobs 4 && \
bundle exec rake test:ci
PARALLEL=1 CI=1 bundle exec rake test:ci
RET=$?

View File

@ -16,11 +16,7 @@ require "httpx"
# TODO: remove this once ruby 2.5 bug is fixed:
# https://github.com/ruby/openssl/issues/187
if RUBY_ENGINE == "ruby" &&
RUBY_VERSION =~ /^2\.5/ &&
ENV.key?("SSL_CERT_FILE")
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:verify_mode] = 0
end
ENV["CI"] && OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:verify_mode] = 0
Dir[File.join(".", "test", "support", "*.rb")].each { |f| require f }
Dir[File.join(".", "test", "support", "**", "*.rb")].each { |f| require f }