forked from loafle/openapi-generator-original
Generate .gitlab-ci.yml files for Ruby template (#12750)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
.ruby: &ruby
|
||||
variables:
|
||||
LANG: "C.UTF-8"
|
||||
before_script:
|
||||
- ruby -v
|
||||
- bundle config set --local deployment true
|
||||
- bundle install -j $(nproc)
|
||||
parallel:
|
||||
matrix:
|
||||
- RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
||||
image: "ruby:$RUBY_VERSION"
|
||||
cache:
|
||||
paths:
|
||||
- vendor/ruby
|
||||
key: 'ruby-$RUBY_VERSION'
|
||||
|
||||
gem:
|
||||
extends: .ruby
|
||||
script:
|
||||
- bundle exec rspec
|
||||
- bundle exec rake build
|
||||
- bundle exec rake install
|
||||
artifacts:
|
||||
paths:
|
||||
- pkg/*.gem
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.gitlab-ci.yml
|
||||
.rspec
|
||||
.rubocop.yml
|
||||
.travis.yml
|
||||
|
||||
Reference in New Issue
Block a user