Unverified Commit b56e89df by Cuong Tran Committed by GitHub

Move gem publish to separate stage in Travis (#618)

Travis was trying to publish gem multiple times in the matrix builds. This should restrict the gem publish to a single build.
parent 289621b8
...@@ -2,22 +2,35 @@ sudo: false ...@@ -2,22 +2,35 @@ sudo: false
language: ruby language: ruby
rvm: rvm:
- 2.2.7 - 2.2.7
- 2.3.4 - 2.3.8
- 2.4.1 - 2.4.6
- 2.5.5
- 2.6.0 - 2.6.0
- 2.6.1
- 2.6.2
- 2.6.3
- ruby-head - ruby-head
matrix: matrix:
allow_failures: allow_failures:
- rvm: ruby-head - rvm: ruby-head
before_install: before_install:
- gem update --system - gem update --system
- gem update bundler - gem update bundler
script: script:
- bundle exec rubocop && bundle exec rspec - bundle exec rubocop && bundle exec rspec
deploy:
jobs:
include:
- stage: gem release
if: tag =~ ^v
rvm: 2.6.0
script: echo "Deploying to rubygems.org ..."
deploy:
provider: rubygems provider: rubygems
api_key: api_key: $RUBYGEMS_API_KEY
secure: Y7DUitak26kcRAAkgph/7m6Y1wHeObD0BelSSJbmCfjkRd/qaVy7fz9VvHL9zxlRJtLGVHInyCnwcfzinibY6OFd3MoMYHKv8GFa2LxLJNEVSY46KQYFxfH5JTg1ejh6ldoJRRBoeOx9dcWS80pRNjYMKPGnpSz7yDBl1azibFs=
gem: annotate gem: annotate
on: on:
tags: true tags: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment