bundle
psql -h localhost -c 'CREATE DATABASE safe_pg_migrations_test'
rake test
You may want to use one of the specific gemfiles, to test against some exotic setups. To do so, run:
BUNDLE_GEMFILE=gemfiles/<YOUR GEMFILE> bundle
BUNDLE_GEMFILE=gemfiles/<YOUR GEMFILE> bundle exec rake test
Automatic release message can be generated using GitHub's release tool.
It is configured via .github/release.yml
.
- Any pull request merged with labels
ignore-for-release
ordependencies
will be ignored. - Pull requests released with label
breaking-change
will be gathered in the "Breaking changes" section. - Pull requests released with label
bug
will be gathered in the "Bug fixes" section. - Any other release will be added to the "New features" section.
NOTE
You need to be part of Doctolib to release a new version of this gem.
- Create a pull request and update the tag:
vim lib/safe-pg-migrations/version.rb # Or whatever editor you'd like bundle # to update the gem version in Gemfile.lock
- Pull master on your computer, and generate the new
gem
file:bundle gem build safe-pg-migrations.gemspec # This pushed the new gem version to RubyGem. You will probably be asked your TOTP code at this step gem push safe-pg-migrations-<VERSION>.gem
- Once the pull request is merged, create a new release on GitHub.
- Click on GitHub's release tool;
- Click on "Choose a tag" and write the name of your new tag (using semantic versioning). A button will appear to create the new tag;
- Once the tag is created, feel the release title with your tag name as well;
- Click on "Generate release notes"
- Ensure that "Set as the latest release" is checked
- Upload the
gem
file you generated in step 2 - Click on "Publish release"