555ae122fab2d4822fef66bb935276945d865931
[fw/altos] / Releasing
1 Adding a product to the release
2
3         Make sure the firmware and loader get built by default in
4         src/Makefile
5
6         Add firmware targets to fat_altos target in Makefile.am
7         
8         Add the firmware to altosui/Makefile.am
9
10         Add the firmware to altosui/altos-windows.nsi.in
11
12         Add the firmware to telegps/Makefile.am
13
14         Add the firmware to telegps/telegps-windows.nsi.in
15
16         Add the firmware to Releasing
17
18 These are Keith's notes on how to do a release
19
20         - update the version and date in configure.ac if Bdale hasn't already
21
22         - follow instructions in doc/RELNOTES
23
24         - make sure there is a doc/release-notes-<version>.inc
25
26         - make sure doc/release-notes.inc points at that
27
28         - make sure doc/Makefile points at that too
29
30         - confirm doc/header.inc has correct copyright year
31
32 These are Bdale's notes on how to do a release.
33
34         - make sure Debian build environment is up to date
35                 sudo cowbuilder --update
36
37         - make sure fat build environment is up to date
38                 sudo apt update && sudo apt upgrade
39
40         - ensure i386 build support is available, and we have tools to build
41           installers for Windows and Mac OS X
42
43                 sudo apt update
44                 sudo apt install genisoimage nsis \
45                         gcc-i686-linux-gnu gcc-aarch64-linux-gnu \
46                         gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf
47
48         - make sure ~/web/altusmetrum has no pending pullable commits
49
50         git checkout master
51
52         - update the version in configure.ac if Keith hasn't already
53
54         - if this is an x.y release, then:
55                 git checkout -b branch-<version>
56
57         - if this is an x.y.z release, then:
58                 git checkout branch-<version>           # the x.y parts only
59                 - cherry-pick or merge appropriate content from master
60         
61         - make sure there is a doc/release-notes-<version>.inc
62         - make sure that doc/*.txt have the right copyright year and the
63           new release is included
64         - confirm doc/header.inc has correct copyright year
65         - make absolutely sure checked-out tree is "clean" 
66         - make absolutely sure any commits Keith might have pushed to branches
67           like debian are already pulled
68
69         git log > ChangeLog
70         git commit -a
71         git tag -a <version>                    # full x.y.z version
72
73         - make sure .git/gbp.conf set to use branch-<version> as upstream
74
75         git checkout debian
76         git merge branch-<version>
77
78         - verify debian/changelog is "clean" ending in last release version
79         - craft a suitable debian/changelog entry, possibly using:
80         gbp dch --release --multimaint-merge --new-version=<version>-1 
81
82         git commit -n debian/changelog -m "update changelog for Debian build"
83
84         - if this is a -1 release, then
85                 gbp buildpackage --git-no-pristine-tar \
86                         --git-upstream-branch=branch-<version> \ # eg 1.3
87                         --git-upstream-tag=<version>             # eg 1.3.1
88                 pristine-tar commit \
89                         ../build-area/altos_<version>.orig.tar.gz \
90                         branch-<version>
91           else if this is not a -1 release
92                 gbp buildpackage
93
94         git tag debian/<version>
95
96         - at this point we have packages in ~/debian/build-area/altos, now
97           we move on to the non-Debian part of the release process
98
99         make distclean  (just to be sure, this should do nothing)
100
101         ./autogen.sh --enable-multi-arch \
102                 --with-fat-dir=/home/bdale/web/altusmetrum/
103         make && make fat
104
105         - store a stable copy of ARM binaries for production use
106
107         cp src/chaoskey-v1.0/{*.elf,*.ihx,*.bin,*.map} \
108            src/easymega-v[1-2].0/{*.elf,*.ihx,*.map} \
109            src/easymini-v[1-2].0/{*.elf,*.ihx,*.map} \
110            src/easymotor-v2/{*.elf,*.ihx,*.map} \
111            src/easytimer-v1/{*.elf,*.ihx,*.map} \
112            src/telebt-v[3-4].0/{*.elf,*.ihx,*.map} \
113            src/teledongle-v3.0/{*.elf,*.ihx,*.map} \
114            src/telegps-v[1-2].0/{*.elf,*.ihx,*.map} \
115            src/telemega-v[1-5].0/{*.elf,*.ihx,*.map} \
116            src/telemetrum-v[2-3].0/{*.elf,*.ihx,*.map} \
117            src/telemini-v3.0/{*.elf,*.ihx,*.map} \
118            src/telelco-v2.0/{*.elf,*.ihx,*.map} \
119            src/telefireeight-v[1-2].0/{*.elf,*.ihx,*.map} \
120            ~/altusmetrumllc/Binaries/
121         cp src/chaoskey-v1.0/flash-loader/{*.elf,*.bin,*.map} \
122            src/easymega-v[1-2].0/flash-loader/*.elf \
123            src/easymini-v[1-2].0/flash-loader/*.elf \
124            src/easymotor-v2/flash-loader/*.elf \
125            src/easytimer-v1/flash-loader/*.elf \
126            src/telebt-v[3-4].0/flash-loader/*.elf \
127            src/teledongle-v3.0/flash-loader/*.elf \
128            src/telegps-v[1-2].0/flash-loader/*.elf \
129            src/telemega-v[1-5].0/flash-loader/*.elf \
130            src/telemetrum-v[2-3].0/flash-loader/*.elf \
131            src/telemini-v3.0/flash-loader/{*.elf,*.bin,*.map} \
132            src/telelco-v2.0/flash-loader/*.elf \
133            src/telefireeight-v[1-2].0/flash-loader/*.elf \
134            ~/altusmetrumllc/Binaries/loaders/
135         (cd ~/altusmetrumllc ; git add Binaries ; git commit -a) 
136         - remove previous versions (only keep latest release)
137         (cd ~/altusmetrumllc ; git push) 
138
139         - Push new release to web site
140
141         make fat-install
142         (cd doc ; make publish)
143
144         (cd ~/web/altusmetrum/ && \
145                 git add */releases && git commit -m'Release <rev>' && \
146                 git push origin master)
147
148         - upload the Debian package 
149
150         - clean up
151
152         sudo debian/rules clean
153         git push origin master branch-<version> debian pristine-tar
154         git push --tags
155
156 Testing before a release
157
158         To verify that a build works, the following need to be checked
159         on each platform:
160
161         1) Install package
162
163         2) Connect TM *and* TD devices. Verify that you can Monitor
164            Flight from the TD and Configure Telemetrum from the TM.
165
166         3) Replay Flight, using your favorite .eeprom file. Check
167            each tab, especially the 'Site Map' tab. Make sure the
168            sound works.
169
170         4) Graph Data. Graph a favorite .eeprom file. Make sure you
171            can zoom in on some region of the graph.