-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate .gitlab-ci.yml files for Ruby template (#12750)
- Loading branch information
Showing
12 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
modules/openapi-generator/src/main/resources/ruby-client/gitlab-ci.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gitignore | ||
.gitlab-ci.yml | ||
.rspec | ||
.rubocop.yml | ||
.travis.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gitignore | ||
.gitlab-ci.yml | ||
.rspec | ||
.rubocop.yml | ||
.travis.yml | ||
|
26 changes: 26 additions & 0 deletions
26
samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 change: 1 addition & 0 deletions
1
samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.openapi-generator/FILES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gitignore | ||
.gitlab-ci.yml | ||
.rspec | ||
.rubocop.yml | ||
.travis.yml | ||
|
26 changes: 26 additions & 0 deletions
26
samples/openapi3/client/features/dynamic-servers/ruby/.gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 change: 1 addition & 0 deletions
1
samples/openapi3/client/features/dynamic-servers/ruby/.openapi-generator/FILES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gitignore | ||
.gitlab-ci.yml | ||
.rspec | ||
.rubocop.yml | ||
.travis.yml | ||
|
26 changes: 26 additions & 0 deletions
26
samples/openapi3/client/features/generate-alias-as-model/ruby-client/.gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 change: 1 addition & 0 deletions
1
...les/openapi3/client/features/generate-alias-as-model/ruby-client/.openapi-generator/FILES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gitignore | ||
.gitlab-ci.yml | ||
.rspec | ||
.rubocop.yml | ||
.travis.yml | ||
|