]> git.notmuchmail.org Git - notmuch/blob - RELEASING
Makefile: Start implementing a "make release" target.
[notmuch] / RELEASING
1 Here are the steps to follow to create a new notmuch release:
2
3 1) Verify that what you want to release is committed. The release
4    process will release the code from the current HEAD commit.
5
6 2) Verify that the NEWS file is up to date.
7
8         Read through the entry at the top of the NEWS file and see if
9         you are aware of any major features recently added that are
10         not mentioned there. If so, pleas add them, (and ask the
11         authors of the commits to update NEWS in the future).
12
13 3) Verify that the notmuch test suite passes.
14
15         Currently this is by running:
16
17                 ./test/notmuch-test
18
19         And manually verifying that every test says PASS. We plan to
20         fix this to automatically check the results and even to
21         automatically run the test suite as part of a Makefile target
22         described below.
23
24 4) Increment the libnotmuch library version in lib/Makefile.local
25
26         See the instructions there for how to increment it. The
27         command below can be useful for inspecting header-file changes
28         since the last release X.Y.Z:
29
30                 git diff X.Y.Z..HEAD -- lib/notmuch.h
31
32         Note: We currently don't plan to increment
33         LIBNOTMUCH_VERSION_MAJOR beyond 1, so if there *are*
34         incompatible changes to the library interface, then
35         stop. Don't release. Figure out the plan on the notmuch
36         mailing list.
37
38         Commit this change.
39
40 5) Increment the notmuch version in Makefile.local
41
42         For most releases we'll just increment the minor number. For
43         major milestones of usability we'll increment the major
44         number.
45
46         Commit this change.
47
48 6) Run "make release" which will perform the following steps:
49
50         * Check that the notmuch version consists of only two components
51         * Check that no release exists with the current version
52         * Verify that "make dist" completes successfully
53         * Generate the final tar file
54         * Generate an sha1sum file
55         * Sign the sha1sum using your GPG setup (asks for your GPG password)
56         * scp the three files to appear on http://notmuchmail.org/releases
57         * Place local copies of the three files in the releases directory
58         * Create a LATEST-notmuch-version file (after deleting any old one)
59         * Tag the entire source tree with a tag of the form X.Y.Z, and sign
60           the tag with your GPG key (asks for your GPG password, and you
61           may need to set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL to match
62           your public-key's setting or this fails.)
63         * Provide some text for the release announcement (see below).
64           If for some reason you lost this message, "make release-publish-message"
65           prints it for you.
66
67 7) Increment the notmuch version by adding a .1 micro number, commit, and push.
68
69 8) Send a message to notmuch@notmuchmail.org to announce the release.
70
71         Use the text from the new entry to NEWS.