mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-09 00:01:48 -05:00
Merge branch 'ruby-32' into 'master'
adding ruby 3.2 to CI See merge request os85/httpx!233
This commit is contained in:
commit
1f946fe66e
@ -27,11 +27,6 @@ variables:
|
|||||||
paths:
|
paths:
|
||||||
- coverage/
|
- coverage/
|
||||||
|
|
||||||
.jit_matrix: &jit_matrix
|
|
||||||
parallel:
|
|
||||||
matrix:
|
|
||||||
- RUBYOPT: ["", "--jit --jit-warnings --jit-wait"]
|
|
||||||
|
|
||||||
.yjit_matrix: &yjit_matrix
|
.yjit_matrix: &yjit_matrix
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
@ -76,19 +71,16 @@ test ruby 2/5:
|
|||||||
./spec.sh ruby 2.5
|
./spec.sh ruby 2.5
|
||||||
test ruby 2/6:
|
test ruby 2/6:
|
||||||
<<: *test_settings
|
<<: *test_settings
|
||||||
<<: *jit_matrix
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
./spec.sh ruby 2.6
|
./spec.sh ruby 2.6
|
||||||
test ruby 2/7:
|
test ruby 2/7:
|
||||||
<<: *test_settings
|
<<: *test_settings
|
||||||
<<: *jit_matrix
|
|
||||||
script:
|
script:
|
||||||
./spec.sh ruby 2.7
|
./spec.sh ruby 2.7
|
||||||
test ruby 3/0:
|
test ruby 3/0:
|
||||||
<<: *test_settings
|
<<: *test_settings
|
||||||
<<: *jit_matrix
|
|
||||||
script:
|
script:
|
||||||
./spec.sh ruby 3.0
|
./spec.sh ruby 3.0
|
||||||
test ruby 3/1:
|
test ruby 3/1:
|
||||||
@ -96,6 +88,11 @@ test ruby 3/1:
|
|||||||
<<: *yjit_matrix
|
<<: *yjit_matrix
|
||||||
script:
|
script:
|
||||||
./spec.sh ruby 3.1
|
./spec.sh ruby 3.1
|
||||||
|
test ruby 3/2:
|
||||||
|
<<: *test_settings
|
||||||
|
<<: *yjit_matrix
|
||||||
|
script:
|
||||||
|
./spec.sh ruby 3.2
|
||||||
test truffleruby:
|
test truffleruby:
|
||||||
<<: *test_settings
|
<<: *test_settings
|
||||||
script:
|
script:
|
||||||
@ -108,7 +105,7 @@ coverage:
|
|||||||
variables:
|
variables:
|
||||||
BUNDLE_WITHOUT: test:assorted
|
BUNDLE_WITHOUT: test:assorted
|
||||||
|
|
||||||
image: "ruby:3.1"
|
image: "ruby:3.2"
|
||||||
script:
|
script:
|
||||||
- gem install simplecov --no-doc
|
- gem install simplecov --no-doc
|
||||||
# this is a workaround, because simplecov doesn't support relative paths.
|
# this is a workaround, because simplecov doesn't support relative paths.
|
||||||
@ -130,7 +127,7 @@ docs:
|
|||||||
stage: deploy
|
stage: deploy
|
||||||
needs:
|
needs:
|
||||||
- coverage
|
- coverage
|
||||||
image: "ruby:3.1"
|
image: "ruby:3.2"
|
||||||
before_script:
|
before_script:
|
||||||
- gem install hanna-nouveau
|
- gem install hanna-nouveau
|
||||||
script:
|
script:
|
||||||
|
|||||||
27
docker-compose-ruby-3.2.yml
Normal file
27
docker-compose-ruby-3.2.yml
Normal 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"
|
||||||
@ -82,7 +82,7 @@ if [[ ${RUBY_VERSION:0:1} = "3" ]] && [[ ! $RUBYOPT =~ "jit" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Lint first
|
# 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
|
bundle exec rake rubocop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user