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,23 +2,36 @@ sudo: false
language: ruby
rvm:
- 2.2.7
- 2.3.4
- 2.4.1
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.0
- 2.6.1
- 2.6.2
- 2.6.3
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
before_install:
- gem update --system
- gem update bundler
script:
- bundle exec rubocop && bundle exec rspec
deploy:
provider: rubygems
api_key:
secure: Y7DUitak26kcRAAkgph/7m6Y1wHeObD0BelSSJbmCfjkRd/qaVy7fz9VvHL9zxlRJtLGVHInyCnwcfzinibY6OFd3MoMYHKv8GFa2LxLJNEVSY46KQYFxfH5JTg1ejh6ldoJRRBoeOx9dcWS80pRNjYMKPGnpSz7yDBl1azibFs=
gem: annotate
on:
tags: true
repo: ctran/annotate_models
jobs:
include:
- stage: gem release
if: tag =~ ^v
rvm: 2.6.0
script: echo "Deploying to rubygems.org ..."
deploy:
provider: rubygems
api_key: $RUBYGEMS_API_KEY
gem: annotate
on:
tags: true
repo: ctran/annotate_models
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