Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for travis-ci to deploy to rubygems #18

Open
ronen opened this issue Dec 28, 2016 · 2 comments
Open

Add support for travis-ci to deploy to rubygems #18

ronen opened this issue Dec 28, 2016 · 2 comments

Comments

@ronen
Copy link
Member

ronen commented Dec 28, 2016

Each gem's schema_dev.yml file should allow an optional field:

travis_rubygems_key: O6ppogYENdh7TprJbbW5OkKMEUAdZioZOWUEdm84+B/6hzYpPbvDsqrX+NbOk8f94r7pllxwribJypLN3VmIj5DDKKBMWW4YSfUQFpN6S0oVh2zlu4cINeEs8IhxP2I8rHesr0T6LN0j7CskImO5E1sKwrTL1E8EKLuUASK658I=

If present, schema_dev would include this magic in the .travis.yml file, telling Travis to deploy to rubygems whenever a tagged version passes the tests.

deploy:
  provider: rubygems
  api_key:
    secure: O6ppogYENdh7TprJbbW5OkKMEUAdZioZOWUEdm84+B/6hzYpPbvDsqrX+NbOk8f94r7pllxwribJypLN3VmIj5DDKKBMWW4YSfUQFpN6S0oVh2zlu4cINeEs8IhxP2I8rHesr0T6LN0j7CskImO5E1sKwrTL1E8EKLuUASK658I=
  gem: schema_plus_core
  on:
    tags: true
    repo: SchemaPlus/schema_plus_core

(Of course using the current gem's name for the repo field.) See Travis-CI RubyGems Deployment.

Probably the easiest way to generate the key would be for a rubygems owner of the gem to run travis setup rubygems which would add all the above to the .travis.yml. Then copy and paste the key to the schema_dev.yml file; then run schema_dev freshen

@ronen
Copy link
Member Author

ronen commented Dec 28, 2016

Oh and once that's done, should be able to remove

require 'bundler'
Bundler::GemHelper.install_tasks

from the Rakefile template, travis deploy would replace "rake release" as the way to release

@boazy
Copy link
Member

boazy commented Dec 28, 2016

We may still need release:source_control_push from the bundler gem to automate tagging the version number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants