mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
enabled parallel testing; turn off certificate verification on CI mode
This commit is contained in:
parent
e666dfb85d
commit
b2cc1c8d4a
@ -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=$?
|
||||
|
||||
|
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user