mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
73 lines
3.2 KiB
Markdown
73 lines
3.2 KiB
Markdown
<a id="top"></a>
|
|
# How to release
|
|
|
|
When enough changes have accumulated, it is time to release new version of Catch. This document describes the process in doing so, that no steps are forgotten. Note that all referenced scripts can be found in the `tools/scripts/` directory.
|
|
|
|
## Necessary steps
|
|
|
|
These steps are necessary and have to be performed before each new release. They serve to make sure that the new release is correct and linked-to from the standard places.
|
|
|
|
|
|
### Testing
|
|
|
|
All of the tests are currently run in our CI setup based on TravisCI and
|
|
AppVeyor. As long as the last commit tested green, the release can
|
|
proceed.
|
|
|
|
|
|
### Incrementing version number
|
|
|
|
Catch uses a variant of [semantic versioning](http://semver.org/), with breaking API changes (and thus major version increments) being very rare. Thus, the release will usually increment the patch version, when it only contains couple of bugfixes, or minor version, when it contains new functionality, or larger changes in implementation of current functionality.
|
|
|
|
After deciding which part of version number should be incremented, you can use one of the `*Release.py` scripts to perform the required changes to Catch.
|
|
|
|
This will take care of generating the single include header, updating
|
|
version numbers everywhere and pushing the new version to Wandbox.
|
|
|
|
|
|
### Release notes
|
|
|
|
Once a release is ready, release notes need to be written. They should summarize changes done since last release. For rough idea of expected notes see previous releases. Once written, release notes should be added to `docs/release-notes.md`.
|
|
|
|
|
|
### Commit and push update to GitHub
|
|
|
|
After version number is incremented, single-include header is regenerated and release notes are updated, changes should be committed and pushed to GitHub.
|
|
|
|
|
|
### Release on GitHub
|
|
|
|
After pushing changes to GitHub, GitHub release *needs* to be created.
|
|
Tag version and release title should be same as the new version,
|
|
description should contain the release notes for the current release.
|
|
Single header version of `catch.hpp` *needs* to be attached as a binary,
|
|
as that is where the official download link links to. Preferably
|
|
it should use linux line endings. All non-bundled reporters (Automake, TAP,
|
|
TeamCity, SonarQube) should also be attached as binaries, as they might be
|
|
dependent on a specific version of the single-include header.
|
|
|
|
Since 2.5.0, the release tag and the "binaries" (headers) should be PGP
|
|
signed.
|
|
|
|
#### Signing a tag
|
|
|
|
To create a signed tag, use `git tag -s <VERSION>`, where `<VERSION>`
|
|
is the version being released, e.g. `git tag -s v2.6.0`.
|
|
|
|
Use the version name as the short message and the release notes as
|
|
the body (long) message.
|
|
|
|
#### Signing the headers
|
|
|
|
This will create ASCII-armored signatures for the headers that are
|
|
uploaded to the GitHub release:
|
|
|
|
```
|
|
$ gpg2 --armor --output catch.hpp.asc --detach-sig catch.hpp
|
|
$ gpg2 --armor --output catch_reporter_automake.hpp.asc --detach-sig catch_reporter_automake.hpp
|
|
$ gpg2 --armor --output catch_reporter_teamcity.hpp.asc --detach-sig catch_reporter_teamcity.hpp
|
|
$ gpg2 --armor --output catch_reporter_tap.hpp.asc --detach-sig catch_reporter_tap.hpp
|
|
```
|
|
|
|
_GPG does not support signing multiple files in single invocation._
|