86 | | There are also some changes on Jenkins setup. There are 5 jobs: iPeer_2.x, iPeer_3.x, iPeer_dev, iPeer_Release_2.x and iPeer_Release_3.x. |
87 | | * Any push to 2.x branch will trigger iPeer_2.x job. If the job success, iPeer_Release_2.x will be triggered and will publish a new version for 2.x. |
88 | | * Any push to master branch will trigger iPeer_3.x job. If the job success, iPeer_Release_3.x will be triggered and will publish a new version for 3.x |
| 86 | There are also some changes on Jenkins setup. There are 5 jobs: [http://ci.ctlt.ubc.ca/job/iPeer2/ iPeer2], [http://ci.ctlt.ubc.ca/job/iPeer3/ iPeer3], [http://ci.ctlt.ubc.ca/job/iPeer_dev/ iPeer_dev], [http://ci.ctlt.ubc.ca/job/iPeer_Release_2.x/ iPeer_Release_2.x] and [http://ci.ctlt.ubc.ca/job/iPeer_Release_3.x/ iPeer_Release_3.x]. |
| 87 | * Any push to 2.x branch will trigger iPeer2 job. If the job success, iPeer_Release_2.x will be triggered and will publish a new version for 2.x. |
| 88 | * Any push to master branch will trigger iPeer3 job. If the job success, iPeer_Release_3.x will be triggered and will publish a new version for 3.x |
| 98 | |
| 99 | == Workflow == |
| 100 | The standard workflow is as the following: |
| 101 | * Pull the latest code |
| 102 | {{{ |
| 103 | git pull |
| 104 | }}} |
| 105 | * Depending on the task, work on ''dev'' branch or create a local branch |
| 106 | * Write some code |
| 107 | * Rung unit tests and integration tests |
| 108 | {{{ |
| 109 | phing test |
| 110 | }}} |
| 111 | * Run your own manual tests |
| 112 | {{{#!div style="background: #dfd; border: solid 1px #8f8; float: right; padding: 0; margin: 0; width: 15em;" |
| 113 | '''Tip''': The ticket can be closed with a command in the [http://trac.edgewall.org/wiki/CommitTicketUpdater commit message]. |
| 114 | }}} |
| 115 | * Merge back to dev branch (not necessary if working on ''dev'' branch) |
| 116 | * Push the changes to github |
| 117 | {{{ |
| 118 | git push |
| 119 | }}} |
| 120 | * Close any related [/report/1 tickets] if there is any |
| 121 | |
| 122 | |
| 123 | == Auto Deployment == |
| 124 | When a push is send to Github, it will trigger a build command on the [http://ci.ctlt.ubc.ca continuous integration server]. It will run the tests and checking, e.g. styles, code duplication, etc, to make sure everything works fine. If the build is failed, you should exam the code and fix it. |
| 125 | |
| 126 | If the build is successful, the CI server will deploy the code to our test server for further testing. Different branch will be deployed to different domain. |
| 127 | * dev branch -> http://ipeerdev.ctlt.ubc.ca |
| 128 | * master branch -> http://ipeerverf.elearning.ubc.ca |
| 129 | * 2.x branch -> http://ipeerverfv2.elearning.ubc.ca |