You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
486 B

2 years ago
  1. .ruby: &ruby
  2. variables:
  3. LANG: "C.UTF-8"
  4. before_script:
  5. - ruby -v
  6. - bundle config set --local deployment true
  7. - bundle install -j $(nproc)
  8. parallel:
  9. matrix:
  10. - RUBY_VERSION: ['2.7', '3.0', '3.1']
  11. image: "ruby:$RUBY_VERSION"
  12. cache:
  13. paths:
  14. - vendor/ruby
  15. key: 'ruby-$RUBY_VERSION'
  16. gem:
  17. extends: .ruby
  18. script:
  19. - bundle exec rspec
  20. - bundle exec rake build
  21. - bundle exec rake install
  22. artifacts:
  23. paths:
  24. - pkg/*.gem