Add ruby 3.3 to CI

This commit is contained in:
Earlopain 2024-01-03 12:28:35 +01:00
parent 5feba82ffb
commit 5b570c21fb
No known key found for this signature in database
GPG Key ID: 48860312319ADF61
4 changed files with 40 additions and 8 deletions

View File

@ -39,7 +39,7 @@ cache:
- vendor - vendor
lint rubocop code: lint rubocop code:
image: "ruby:3.2" image: "ruby:3.3"
variables: variables:
BUNDLE_WITHOUT: test:coverage:assorted BUNDLE_WITHOUT: test:coverage:assorted
before_script: before_script:
@ -47,7 +47,7 @@ lint rubocop code:
script: script:
- bundle exec rake rubocop - bundle exec rake rubocop
lint rubocop wiki: lint rubocop wiki:
image: "ruby:3.2" image: "ruby:3.3"
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
variables: variables:
@ -61,7 +61,7 @@ lint rubocop wiki:
- rubocop-md - rubocop-md
AllCops: AllCops:
TargetRubyVersion: 3.2 TargetRubyVersion: 3.3
DisabledByDefault: true DisabledByDefault: true
FILE FILE
script: script:
@ -93,13 +93,18 @@ test ruby 3/2:
<<: *yjit_matrix <<: *yjit_matrix
script: script:
./spec.sh ruby 3.2 ./spec.sh ruby 3.2
test ruby 3/3:
<<: *test_settings
<<: *yjit_matrix
script:
./spec.sh ruby 3.3
test truffleruby: test truffleruby:
<<: *test_settings <<: *test_settings
script: script:
./spec.sh truffleruby latest ./spec.sh truffleruby latest
allow_failure: true allow_failure: true
regression tests: regression tests:
image: "ruby:3.2" image: "ruby:3.3"
variables: variables:
BUNDLE_WITHOUT: lint:assorted BUNDLE_WITHOUT: lint:assorted
CI: 1 CI: 1
@ -120,7 +125,7 @@ coverage:
variables: variables:
BUNDLE_WITHOUT: lint:test:assorted BUNDLE_WITHOUT: lint:test:assorted
image: "ruby:3.2" image: "ruby:3.3"
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.
@ -142,7 +147,7 @@ pages:
stage: deploy stage: deploy
needs: needs:
- coverage - coverage
image: "ruby:3.2" image: "ruby:3.3"
before_script: before_script:
- gem install hanna-nouveau - gem install hanna-nouveau
script: script:

View File

@ -136,7 +136,7 @@ The test suite runs against [httpbin proxied over nghttp2](https://nghttp2.org/h
All Rubies greater or equal to 2.7, and always latest JRuby and Truffleruby. All Rubies greater or equal to 2.7, and always latest JRuby and Truffleruby.
**Note**: This gem is tested against all latest patch versions, i.e. if you're using 3.2.0 and you experience some issue, please test it against 3.2.$latest before creating an issue. **Note**: This gem is tested against all latest patch versions, i.e. if you're using 3.3.0 and you experience some issue, please test it against 3.3.$latest before creating an issue.
## Resources ## Resources
| | | | | |

View File

@ -0,0 +1,27 @@
version: '3'
services:
httpx:
image: ruby:3.3
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_ENGINE" = "ruby" ]]; then
COVERAGE_KEY="$RUBY_ENGINE-$RUBY_VERSION-integration-tests" bundle exec rake integration_tests COVERAGE_KEY="$RUBY_ENGINE-$RUBY_VERSION-integration-tests" bundle exec rake integration_tests
fi fi
if [[ ${RUBY_VERSION:0:3} = "3.2" ]] && [[ "$RUBY_ENGINE" = "ruby" ]]; then if [[ ${RUBY_VERSION:0:3} = "3.3" ]] && [[ "$RUBY_ENGINE" = "ruby" ]]; then
# regression tests # regression tests
# Testing them only with main ruby # Testing them only with main ruby
# COVERAGE_KEY="$RUBY_ENGINE-$RUBY_VERSION-regression-tests" bundle exec rake regression_tests # COVERAGE_KEY="$RUBY_ENGINE-$RUBY_VERSION-regression-tests" bundle exec rake regression_tests