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