Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #193 from Takishipp/signals
[simgrid.git] / doc / doxygen / inside_release.doc
1 /*! 
2 \page inside_release Releasing SimGrid
3
4 \section inside_release_c Releasing the main library
5
6 \subsection inside_release_c_preconditions Before releasing
7
8 Please apply the following checklist before releasing.
9
10 - Sources
11   - The version number is correctly marked in CMakeLists.txt, in macros
12     SIMGRID_VERSION_MAJOR and friends. 
13   - The "make distcheck" target works (testing that every files needed
14     to build and install are included in the archive)
15 - Tests
16   - All tests pass on a reasonable amount of platforms (typically,
17     everything on ci)
18   - You also tested to build and install the content of the source
19     archive on a reasonable amount of platforms (typically, 2 or 3).
20 - ChangeLog file
21   - All changes are documented
22   - The release date is indicated below the changes
23   - The release is marked as stable above the changes (remove the UNRELEASED marker)
24   - The release dub name matches the one given in NEWS file
25 - NEWS
26   - The most notable changes of the version are documented
27   - The release date is indicated right below the version name
28   - The release dub name matches the one given in ChangeLog file
29
30 \subsection inside_release_c_source Building the source archive
31
32 This should be done from a clean git repository because some files are
33 included through globbing. The best is to use a clean checkout:
34 \verbatim
35 cd /tmp
36 git clone ~/Code/simgrid
37 cd simgrid
38 cmake . && make dist
39 \endverbatim
40
41 If you prefer, you can clean your repository the hard way:
42 \verbatim
43 git reset --hard master # warning, it will kill your uncommited changes
44 git clean -dfx          # warning, it will kill your uncommited changes
45 cmake . && make dist
46 \endverbatim
47
48 \subsection inside_release_c_source Building the binary jarfile
49
50 Get the jarfiles for several OSes on the CI slaves. Use Save under to
51 give a separate name to each of them.
52
53 - On Jenkins: Mac OSX, Linux 64 and Linux 32 (without boost-context), FreeBSD, NetBSD
54 - On AppVeyor: Windows 
55
56 Once all jarfiles are in a separate directory, run the following to
57 merge them:
58 \verbatim
59 mkdir content ; cd content
60
61 for j in  ../simgrid-linux64.jar ../*.jar ; do unzip -n $j ; done
62 # The content of all jar should be the same, but I prefer using the Linux64 version by default
63 #  => unpack it first, and unpack the others with -n (never overwrite)
64
65 test -e doc/javadoc || echo "YOU ARE MISSING THE DOC"
66
67 du -sh .                                  # 273M here. Let's strip (Darwin is already good)
68 strip NATIVE/*/*/*.so                     # Gets BSD and Linux versions, down to 116M
69 x86_64-linux-gnu-strip NATIVE/*/*/lib*dll # Gets Windows, down to 22M
70
71 rm ../simgrid-3_*.jar
72 zip -r ../simgrid-3_XX.jar *              # Produced ../simgrid-3_XX.jar is 7.7M
73 \endverbatim
74
75 To upload the file on gforge, you need to go to Files/Admin then clic
76 on the Settings icon near to the "Add a version" button, and then on
77 the settings icon of the release you want to change.
78
79 \subsection inside_release_c_postchecks Check list after releasing
80
81 - Tag the git repository (don't forget to push the tags to the main repo)
82 - Push the archive files (tar.gz and jar) on gforge
83 - Post a news on gforge (before updating the website)
84 - Update the link scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/latest
85   (and create the directory of the next version)
86 - Rebuild and resynchronize the website so that the file gets visible
87   from our download page.\n
88   - Edit org/org-templates/level-0.org to change the release version, the tgz link and the jar link.
89   - emacs org/site/index.org and C-c C-c the first source block to refresh the news.
90   - emacs org/site/download.org and C-c C-c the first source block to refresh the download.
91   - emacs org/site/documentation.org and edit the version links.
92   - make -C org all sync
93   - git commit && git push
94 - Announce the release
95  - Mail the simgrid-user mailing list
96     - the NEWS chunk in the mail;
97     - the ChangeLog chunk as attachment
98  - Also mail some other lists (G5K users), with only the NEWS chunk
99    and the link to the download section
100 - Release the debian package   
101 - Create the template for the next release in ChangeLog and NEWS files
102 - Change the release number in CMakeLists.txt
103
104 */