| 1 |
|
|---|
| 2 | How to release a new version of CIVL
|
|---|
| 3 |
|
|---|
| 4 | 1. Working with your local copy of trunk, make sure all tests pass.
|
|---|
| 5 |
|
|---|
| 6 | 2. Edit the fields named "version" and "date" in class
|
|---|
| 7 | edu.udel.cis.vsl.civl.CIVL to use the new version and today's date.
|
|---|
| 8 | Also, edit README to change the version number and the changes of
|
|---|
| 9 | the new version.
|
|---|
| 10 |
|
|---|
| 11 | 3. Commit your trunk or make sure there are no uncommitted
|
|---|
| 12 | modifications.
|
|---|
| 13 |
|
|---|
| 14 | 4. Create the tag: to create version 0.2, for example:
|
|---|
| 15 |
|
|---|
| 16 | svn copy svn://vsl.cis.udel.edu/civl/trunk svn://vsl.cis.udel.edu/civl/tags/0.2
|
|---|
| 17 |
|
|---|
| 18 | 5. Create a new config file for autotest: check out
|
|---|
| 19 | svn://vsl.cis.udel.edu/scripts if you have not already, or update it
|
|---|
| 20 | if you already have a local copy. Create a new file config_civl-0.2.sh
|
|---|
| 21 | (for example) based on one of the other config_civl configuration
|
|---|
| 22 | files. There are 3 points that must be changed: (1) BRANCH should be
|
|---|
| 23 | set to 0.2 (for example); this is the name that will be assigned to
|
|---|
| 24 | this branch, (2) REPO needs to be changed to point to the new tagged
|
|---|
| 25 | version, e.g. svn://vsl.cis.udel.edu/civl/tags/0.2, and (3)
|
|---|
| 26 | WORKER_CONFIG needs to be changed to refer to the same configuration
|
|---|
| 27 | file you are creating, i.e., ${WORKER_SCRIPT_DIR}/config_civl-0.2.sh
|
|---|
| 28 | in this example. Save this file and commit it.
|
|---|
| 29 |
|
|---|
| 30 | 6. Update the autotest scripts on nikolai:
|
|---|
| 31 | ssh tester@nikolai.cis.udel.edu
|
|---|
| 32 | cd repos/scripts/
|
|---|
| 33 | svn update
|
|---|
| 34 |
|
|---|
| 35 | 7. Update the autotest scripts on vsl:
|
|---|
| 36 | ssh vsl.cis.udel.edu
|
|---|
| 37 | eecis_su svn
|
|---|
| 38 | cd ~/scripts/
|
|---|
| 39 | svn update
|
|---|
| 40 |
|
|---|
| 41 | 8. On vsl.cis.udel.edu, eecis_su svn, and edit
|
|---|
| 42 | /home/svn/repositories/civl/hooks/post-commit by changing the second
|
|---|
| 43 | autotest command to refer to the new version configuration file. (You
|
|---|
| 44 | could also add a completely new autotest command; it will work either
|
|---|
| 45 | way.)
|
|---|
| 46 |
|
|---|
| 47 | 9. The autotest script will create the release at the next CIVL commit
|
|---|
| 48 | (to any part of CIVL). If you don't want to wait, you can trigger it
|
|---|
| 49 | manually by executing from vsl, in ~/scripts/autotest:
|
|---|
| 50 |
|
|---|
| 51 | ./run_manager.sh FullPathTo/config_civl-0.2.sh 121
|
|---|
| 52 |
|
|---|
| 53 | where 121 is whatever the revision number was for the release.
|
|---|
| 54 |
|
|---|
| 55 | 10. Edit svn://vsl.cis.udel.edu/vsl/web/civl/index.html:
|
|---|
| 56 |
|
|---|
| 57 | - use the new release in the latest stable release of Download section:
|
|---|
| 58 | <li><a href="test/0.2/latest/release">Latest stable release</a></li>
|
|---|
| 59 |
|
|---|
| 60 | - use the new released manual in the Documentation section:
|
|---|
| 61 | <li>The CIVL Manual: <a href="test/0.8/latest/release/civl-manual-0.8_711.pdf">
|
|---|
| 62 | latest stable version </a> </li>
|
|---|
| 63 |
|
|---|
| 64 | Commit the change, and then on vsl, cd /home/www/vsl/civl and svn update to
|
|---|
| 65 | update index.html to the latest version.
|
|---|
| 66 |
|
|---|
| 67 | 11. If there are any problems, you can continue to modify the branch.
|
|---|
| 68 | For example, to incorporate changes from the trunk, update or check
|
|---|
| 69 | out a fresh local copy of the whole project, change into the branch
|
|---|
| 70 | directory, and type svn merge svn://vsl.cis.udel.edu/civl/trunk See
|
|---|
| 71 | the Subversion Book for details on merging changes. Then commit these
|
|---|
| 72 | changes as usual. After each commit, autotest should run automatically
|
|---|
| 73 | and produce the new release.
|
|---|
| 74 |
|
|---|
| 75 | 12. Test the release: download it from the web page, move the
|
|---|
| 76 | executable file "civl" somewhere in your path (e.g., /tools/bin)
|
|---|
| 77 | and execute it on an example, e.g., "civl verify examples/barrier.cvl".
|
|---|
| 78 |
|
|---|
| 79 | 13. Update Trac milestones: go to https://vsl.cis.udel.edu/trac/civl/,
|
|---|
| 80 | log in, click on Roadmap, click on the milestone name (v0.2, for
|
|---|
| 81 | example), and edit it to indicate completed. You can also indicate
|
|---|
| 82 | that open tickets for that milestone be pushed to the next milestone.
|
|---|
| 83 | Update other milestones (for example, pushing the dates forward) as
|
|---|
| 84 | desired.
|
|---|
| 85 |
|
|---|
| 86 | 14. Send an email to civl-users announcing the new release.
|
|---|