Debian Codegraph @

README.Release

raw
1 Before the Release
2
3 Send mail to jeuclid-devel, asking for potential release, count votes
4
5
6 Release day:
7
8 <!-- currently none
9 1. manually edit all pom.xml and remove snapshot dependencies.
10 You may have to commit these changes
11 mvn -Dmessage="Disabled snapshots in preparation for release" scm:checkin
12 -->
13
14 2. Test with maven:
15
16 mvn -DdryRun=true release:prepare
17 (check if that works, and resolve any issues before going ahead)
18 mvn release:clean
19
20 mvn install
21
22 3. Actually prepare release:
23
24 mvn release:prepare
25
26 fails half-way through due to missing dependencies, fix with
27 mvn install
28 mvn release:prepare -Dresume
29
30 if you get a mercurial commit error:
31 - edit release.properties, set completedPhase to scm-commit-release
32 - resume
33 mvn release:prepare -Dresume
34
35 Then the same again, this time to scm-commit-development
36
37 4. Perform the release
38
39 Ensure that you have a shell at sourceforge:
40 /usr/bin/ssh -T maxberger,[email protected] create
41 (use your user name)
42
43 mvn release:perform -DgenerateReleasePoms=true
44 (checks out the project into target/checkout)
45
46 WILL FAIL after uploading jeuclid-parent, but that's ok!
47
48 clean up after release:
49
50 mvn release:clean
51
52 5. Manually build, install locally
53
54 cd target/checkout
55 mvn install
56
57 6. Deploy to m2-release (which is automatically synced to ibiblio)
58
59 disable all modules except -mathviewer, -core, -core16 -cli -swt (use only comments, do not delete lines!) currently: fop, jeuclid, minimal, testsuite
60
61 (edit pom.xml in target / checkout)
62
63 mvn deploy
64
65 7. Re-enable distribution plugins (that where disabled in 1: none)
66 Also, re-enable all modules ( still in target / checkout )
67
68 hg revert pom.xml
69
70 build the real release packages:
71
72 mvn package
73
74 build source packages:
75 mvn assembly:assembly -Ddescriptor=src/assemble/source.xml
76 (TODO: Maybe also in support/ )
77
78 upload to sf:
79
80 VERSION=3.1.2 #replace with version
81 USER=maxberger #replace with your sf id
82 cd jeuclid/target
83 rsync -avP -e ssh jeuclid-$VERSION-distribution.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
84 cd ../../jeuclid-mathviewer/target
85 rsync -avP -e ssh jeuclid-mathviewer-$VERSION-osx.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
86 rsync -avP -e ssh jeuclid-mathviewer-$VERSION-win32.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
87 cd ../../jeuclid-minimal/target
88 rsync -avP -e ssh jeuclid-minimal-$VERSION-distribution.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
89 cd ../../jeuclid-fop/target
90 rsync -avP -e ssh jeuclid-fop-$VERSION-distribution.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
91 cd ../../target/
92 rsync -avP -e ssh jeuclid-parent-$VERSION-src.zip ${USER},[email protected]:/home/frs/project/j/je/jeuclid/3.1.x/${VERSION}/
93 cd ..
94
95 Log into SF website and use files. ( release )
96
97 Write News on SF site
98
99 8. Update website
100
101 go back to main SVN,
102 cd ../..
103 cd src/site
104
105 edit docbook/index.xml
106
107 cd ../..
108
109 9. update src/changes/changes.xml
110 <!--
111 10. Undo changed in pom.xmls (re-enable plugins from step 1)
112 -->
113
114 <!--
115 11. Deploy website
116 mvn install && mvn site && mvn site-deploy
117 (is done automatically at night)
118 -->
119
120 12. commit changes
121 mvn -Dmessage="Updated file after release" scm:checkin
122
123 13. Send email to jeuclid-users and jeuclid-devel, and optionally to [email protected]
124
125
126
127