Merge branch 'ruby-32' into 'master'

adding ruby 3.2 to CI

See merge request os85/httpx!233
This commit is contained in:
HoneyryderChuck 2023-01-20 17:19:03 +00:00
commit 1f946fe66e
3 changed files with 35 additions and 11 deletions

View File

@ -27,11 +27,6 @@ variables:
paths:
- coverage/
.jit_matrix: &jit_matrix
parallel:
matrix:
- RUBYOPT: ["", "--jit --jit-warnings --jit-wait"]
.yjit_matrix: &yjit_matrix
parallel:
matrix:
@ -76,19 +71,16 @@ test ruby 2/5:
./spec.sh ruby 2.5
test ruby 2/6:
<<: *test_settings
<<: *jit_matrix
only:
- master
script:
./spec.sh ruby 2.6
test ruby 2/7:
<<: *test_settings
<<: *jit_matrix
script:
./spec.sh ruby 2.7
test ruby 3/0:
<<: *test_settings
<<: *jit_matrix
script:
./spec.sh ruby 3.0
test ruby 3/1:
@ -96,6 +88,11 @@ test ruby 3/1:
<<: *yjit_matrix
script:
./spec.sh ruby 3.1
test ruby 3/2:
<<: *test_settings
<<: *yjit_matrix
script:
./spec.sh ruby 3.2
test truffleruby:
<<: *test_settings
script:
@ -108,7 +105,7 @@ coverage:
variables:
BUNDLE_WITHOUT: test:assorted
image: "ruby:3.1"
image: "ruby:3.2"
script:
- gem install simplecov --no-doc
# this is a workaround, because simplecov doesn't support relative paths.
@ -130,7 +127,7 @@ docs:
stage: deploy
needs:
- coverage
image: "ruby:3.1"
image: "ruby:3.2"
before_script:
- gem install hanna-nouveau
script:

View File

@ -0,0 +1,27 @@
version: '3'
services:
httpx:
image: ruby:3.1
environment:
- HTTPBIN_COALESCING_HOST=another
- HTTPX_RESOLVER_URI=https://doh/dns-query
links:
- "nghttp2:another"
depends_on:
- doh
doh:
image: registry.gitlab.com/os85/httpx/nghttp2:1
depends_on:
- doh-proxy
entrypoint:
/usr/local/bin/nghttpx
volumes:
- ./test/support/ci:/home
command:
--conf /home/doh-nghttp.conf --no-ocsp --frontend '*,443'
doh-proxy:
image: publicarray/doh-proxy
environment:
- "UNBOUND_SERVICE_HOST=127.0.0.11"

View File

@ -82,7 +82,7 @@ if [[ ${RUBY_VERSION:0:1} = "3" ]] && [[ ! $RUBYOPT =~ "jit" ]]; then
fi
# Lint first
if [[ ${RUBY_VERSION:0:3} = "3.1" ]] && [[ "$RUBY_ENGINE" = "ruby" ]]; then
if [[ ${RUBY_VERSION:0:3} = "3.2" ]] && [[ "$RUBY_ENGINE" = "ruby" ]]; then
bundle exec rake rubocop
fi