1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
.test-template: &test
cache:
paths:
- vendor/ruby
before_script:
- gem install bundler --no-document
- bundle config set --local path 'vendor/bundle'
- bundle config set --local without 'development'
- bundle install -j $(nproc)
- ruby -v # Print out ruby version for debugging
script:
- bundle exec rake compile
- bundle exec rake test
default:
image: "ruby:${RUBY_VERSION}"
rspec:
parallel:
matrix:
- RUBY_VERSION: ["2.6", "2.7", "3.0"]
<<: *test
truffleruby:
image: "flavorjones/truffleruby:buster"
allow_failure: true
<<: *test
gems:
services:
- docker:${DOCKER_VERSION}-dind
variables:
DOCKER_VERSION: "20.10.1"
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
RUBY_VERSION: "2.7"
stage: test
when: manual
<<: *test
script:
- apt update && apt-get install -y docker.io
- bundle exec rake gem:native
artifacts:
paths:
- pkg/*.gem
|