Releasing: capture notes from 1.9.1 release
[fw/altos] / Releasing
index 80d39f6a951965bb0606b1d2891ddd4d1ea314e8..51434c1d62461e1f184cc24b26e8b49af4b43acd 100644 (file)
--- a/Releasing
+++ b/Releasing
-These are Bdale's notes on how to do a release.
+Adding a product to the release
+
+       Make sure the firmware and loader get built by default in
+       src/Makefile
+
+       Add firmware targets to fat_altos target in Makefile.am
+       
+       Add the firmware to altosui/Makefile.am
+
+       Add the firmware to altosui/altos-windows.nsi.in
 
-       update the version in configure.ac and commit
+       Add the firmware to telegps/Makefile.am
 
-       git tag -a <version>
+       Add the firmware to telegps/telegps-windows.nsi.in
 
-       - make sure checked-out tree is "clean" so git won't complain
+       Add the firmware to Releasing
 
-       git-buildpackage
+These are Keith's notes on how to do a release
 
-               at this point, we have Debian packages
+       - update the version and date in configure.ac if Bdale hasn't already
 
-       make distclean
+       - follow instructions in doc/RELNOTES
 
-       ./autogen.sh --with-fat-dir=/home/bdale/web/altusmetrum/AltOS/releases
-       make fat
+       - make sure there is a doc/release-notes-<version>.inc
 
-               this pushes packages for each platform to web site
+       - make sure doc/release-notes.inc points at that
 
-       - copy the relevant release notes file from doc/ to 
-           /home/bdale/web/altusmetrum/AltOS/releases/<rev>
+       - make sure doc/Makefile points at that too
 
-       - go edit ~/web/altusmetrum/AltOS/releases/<rev>.mdwn to include
-         release date and explicit ref to dir contents so the AltOS page
-         shows versioned links, commit and push
+These are Bdale's notes on how to do a release.
 
+       - make sure Debian build environment is up to date
+               sudo cowbuilder --update
+
+       - make sure fat build environment is up to date
+               sudo apt update && sudo apt upgrade
+
+       - ensure i386 build support is available, and we have tools to build
+         installers for Windows and Mac OS X
+
+               sudo dpkg --add-architecture i386
+               sudo apt update
+               sudo apt install gcc-multilib genisoimage nsis
+               (need some mingw packages too, but not sure which offhand)
+
+       - make sure ~/web/altusmetrum has no pending pullable commits
+
+       git checkout master
+
+       - update the version in configure.ac if Keith hasn't already
+
+       - if this is an x.y release, then:
+               git checkout -b branch-<version>
+
+       - if this is an x.y.z release, then:
+               git checkout branch-<version>           # the x.y parts only
+               - cherry-pick or merge appropriate content from master
+       
+       - make sure there is a doc/release-notes-<version>.inc
+       - make sure that doc/*.txt have the right copyright year and the
+         new release is included
+       - make absolutely sure checked-out tree is "clean" 
+       - make absolutely sure any commits Keith might have pushed to branches
+         like debian are already pulled
+
+        git log > ChangeLog
+       git commit -a
+       git tag -a <version>                    # full x.y.z version
+
+       - make sure .git/gbp.conf set to use branch-<version> as upstream
+
+       git checkout debian
+       git merge branch-<version>
+
+       - verify debian/changelog is "clean" ending in last release version
+       - craft a suitable debian/changelog entry, possibly using:
+       gbp dch --release --multimaint-merge --new-version=<version>-1 
+
+        git commit -n debian/changelog -m "update changelog for Debian build"
+
+       - if this is a -1 release, then
+               gbp buildpackage --git-no-pristine-tar \
+                       --git-upstream-branch=branch-<version> \ # eg 1.3
+                       --git-upstream-tag=<version>             # eg 1.3.1
+               pristine-tar commit \
+                       ../build-area/altos_<version>.orig.tar.gz \
+                       branch-<version>
+         else if this is not a -1 release
+               gbp buildpackage
+
+       git tag debian/<version>
+
+       - at this point we have packages in ~/debian/build-area/altos, now
+         we move on to the non-Debian part of the release process
+
+       make distclean  (just to be sure, this should do nothing)
+
+       ./autogen.sh --enable-multi-arch \
+               --with-fat-dir=/home/bdale/web/altusmetrum/
+       make && make fat
+
+       - store a stable copy of ARM binaries for production use
+
+       cp src/chaoskey-v1.0/{*.elf,*.ihx,*.bin} \
+          src/easymega-v1.0/{*.elf,*.ihx} \
+          src/easymega-v2.0/{*.elf,*.ihx} \
+          src/easymini-v1.0/{*.elf,*.ihx} \
+          src/easymini-v2.0/{*.elf,*.ihx} \
+          src/telebt-v3.0/{*.elf,*.ihx} \
+          src/telebt-v4.0/{*.elf,*.ihx} \
+          src/teledongle-v3.0/{*.elf,*.ihx} \
+          src/telegps-v1.0/{*.elf,*.ihx} \
+          src/telegps-v2.0/{*.elf,*.ihx} \
+          src/telemega-v1.0/{*.elf,*.ihx} \
+          src/telemega-v2.0/{*.elf,*.ihx} \
+          src/telemega-v3.0/{*.elf,*.ihx} \
+          src/telemetrum-v2.0/{*.elf,*.ihx} \
+          src/telemini-v3.0/{*.elf,*.ihx} \
+          src/telelco-v2.0/{*.elf,*.ihx} \
+          src/telefireeight-v1.0/{*.elf,*.ihx} \
+          src/telefireeight-v2.0/{*.elf,*.ihx} \
+          ~/altusmetrumllc/Binaries/
+       cp src/chaoskey-v1.0/flash-loader/{*.elf,*.bin} \
+          src/easymega-v1.0/flash-loader/*.elf \
+          src/easymega-v2.0/flash-loader/*.elf \
+          src/easymini-v1.0/flash-loader/*.elf \
+          src/easymini-v2.0/flash-loader/{*.elf,*.bin} \
+          src/telebt-v3.0/flash-loader/*.elf \
+          src/telebt-v4.0/flash-loader/{*.elf,*.bin} \
+          src/teledongle-v3.0/flash-loader/*.elf \
+          src/telegps-v1.0/flash-loader/*.elf \
+          src/telegps-v2.0/flash-loader/{*.elf,*.bin} \
+          src/telemega-v1.0/flash-loader/*.elf \
+          src/telemega-v2.0/flash-loader/*.elf \
+          src/telemega-v3.0/flash-loader/*.elf \
+          src/telemetrum-v2.0/flash-loader/*.elf \
+          src/telemini-v3.0/flash-loader/{*.elf,*.bin} \
+          src/telelco-v2.0/flash-loader/*.elf \
+          src/telefireeight-v1.0/flash-loader/*.elf \
+          src/telefireeight-v2.0/flash-loader/*.elf \
+          ~/altusmetrumllc/Binaries/loaders/
+       (cd ~/altusmetrumllc ; git add Binaries ; git commit -a) 
+       - remove previous versions (only keep latest release)
+       (cd ~/altusmetrumllc ; git push) 
+
+       - Push new release to web site
+
+       make fat-install
        (cd doc ; make publish)
 
-               this pushes fresh documents to the web site
+       (cd ~/web/altusmetrum/ && \
+               git add */releases && git commit -m'Release <rev>' && \
+               git push origin master)
 
-       sudo debian/rules clean
+       - upload the Debian package 
 
-               leave the build tree in an unclutterd state
+       - clean up
+
+       sudo debian/rules clean
+       git push origin master branch-<version> debian pristine-tar
+       git push --tags
 
 Testing before a release