diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-11 21:54:04 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | cc059b16b253d0f9622fa0c51606e722b190b526 (patch) | |
tree | 737fa7f6510f56888534cec792cbebecf303e9af /lib/bundler/templates | |
parent | 9be1baedbc14be036342cca3e363ae6f44153990 (diff) | |
download | ruby-cc059b16b253d0f9622fa0c51606e722b190b526.tar.gz |
Manually cherry-picked at https://github.com/rubygems/rubygems/commit/80260b3496e357bf96ffe6f381e29bf25b6749cb
Diffstat (limited to 'lib/bundler/templates')
-rw-r--r-- | lib/bundler/templates/newgem/.circleci/config.yml.tt | 13 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/.github/workflows/main.yml.tt | 18 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/.gitlab-ci.yml.tt | 9 |
3 files changed, 40 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/.circleci/config.yml.tt b/lib/bundler/templates/newgem/.circleci/config.yml.tt new file mode 100644 index 0000000000..660943a3df --- /dev/null +++ b/lib/bundler/templates/newgem/.circleci/config.yml.tt @@ -0,0 +1,13 @@ +version: 2.1 +jobs: + build: + docker: + - image: ruby:<%= RUBY_VERSION %> + steps: + - checkout + - run: + name: Run tests + command: | + gem install bundler -v <%= Bundler::Version %> + bundle install + bundle exec rake test diff --git a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt new file mode 100644 index 0000000000..929901ac56 --- /dev/null +++ b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt @@ -0,0 +1,18 @@ +name: Ruby + +on: [push,pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %> + uses: actions/setup-ruby@v1 + with: + ruby-version: <%= ::Gem::Version.new(RUBY_VERSION).segments[0..1].join(".") %>.x + - name: Build and test with Rake + run: | + gem install bundler -v <%= Bundler::VERSION %> + bundle install --jobs 4 --retry 3 + bundle exec rake diff --git a/lib/bundler/templates/newgem/.gitlab-ci.yml.tt b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt new file mode 100644 index 0000000000..0e71ff26a4 --- /dev/null +++ b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt @@ -0,0 +1,9 @@ +image: ruby:<%= RUBY_VERSION %> + +before_script: + - gem install bundler -v <%= Bundler::VERSION %> + - bundle install + +example_job: + script: + - bundle exec rake |