Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for 
change notification.

The "CuttingReleases" page has been changed by AndrewGrieve:
http://wiki.apache.org/cordova/CuttingReleases?action=diff&rev1=36&rev2=37

  
  == Creating JIRA issues ==
  
+ TODO: Enhance coho tool to take care of JIRA tasks.
+ 
  To keep track of tagging progress and create JIRA issues for each component 
of a Cordova release, use the 
[[https://git-wip-us.apache.org/repos/asf?p=cordova-labs.git;a=shortlog;h=refs/heads/jira|JIRA
 node.js scripts]] (under cordova-labs / jira branch).
  
  == Branching & Tagging cordova-js and cordova-app-hello-world ==
  
  This should be done *before* creating branches on other repos
  
- === Steps for cordova-js ===
+ {{{#!bash
+ ./cordova-coho/coho create-release-branch --version 2.8.0rc1 -r js -r 
app-hello-world
+ ./cordova-coho/coho tag-release --version 2.8.0rc1 -r js -r app-hello-world
+ }}}
+ 
+ == Branching Platform Repositories ==
+ 
+ === Before creating the release branch: ===
  
   1. Run [[http://creadur.apache.org/rat/ | Apache RAT]] to ensure copyright 
headers are present
-  1. Create a branch:
-     {{{#!bash
-     git checkout master
-     git fetch --tags
-     git pull
-     git checkout -b 2.7.x
-     }}}
-  1. Update VERSION:
-     {{{#!bash
-     echo "2.7.0rc1" > VERSION
-     jake
-     git commit -am 'Set VERSION to 2.7.0rc1'
-     }}}
-  1. Tag & Push
-     {{{#!bash
-     git tag 2.7.0rc1
-     git push --tags origin 2.7.x
-     }}}
- 
- === Steps for cordova-app-hello-world ===
- 
-  1. Run [[http://creadur.apache.org/rat/ | Apache RAT]] to ensure copyright 
headers are present
-  1. Create a branch:
-     {{{#!bash
-     git checkout master
-     git fetch --tags
-     git pull
-     git checkout -b 2.7.x
-     }}}
-  1. Update VERSION:
-     {{{#!bash
-     echo "2.7.0rc1" > VERSION
-     sed -i '' -e 's:"cordova-.*js":"cordova-2.7.0rc1.js":' www/index.html
-     git commit -am 'Set VERSION to 2.7.0rc1'
-     }}}
-  1. Tag & Push
-     {{{#!bash
-     git tag 2.7.0rc1
-     git push --tags origin 2.7.x
-     }}}
- 
- == Branching Platform Repositories ==
- 
- === Before creating the release branch: ===
- 
-  1. Run [[http://creadur.apache.org/rat/ | Apache RAT]] to ensure copyright 
headers are present
-  1. Update the cordova.js snapshot:
-    * Android:
-      {{{#!bash
-      cp ../cordova-js/pkg/cordova.android.js 
framework/assets/js/cordova.android.js
-      }}}
-    * iOS:
-      {{{#!bash
-      cp ../cordova-js/pkg/cordova.ios.js CordovaLib/cordova.ios.js
-      }}}
   1. Update the copy of app-hello-world
     * This usually lives within bin/templates somewhere
     * TODO: More details needed here
@@ -141, +95 @@

  
  === Creating the release branch ===
  
+ The coho tool creates the release branches, update VERSION files, and update 
the cordova.js snapshot:
- {{{#!bash
- git checkout master
- git pull
- git checkout -b 2.7.x
- git push origin 2.7.x
- }}}
- 
- === After creating the release branch ===
- 
- ==== Steps for cordova-mobile-spec ====
- 
-  1. On release branch:
-     {{{#!bash
+ {{{#!bash
+ ./cordova-coho/coho create-release-branch --version 2.8.0rc1 -r active
+ }}}
-     echo "2.7.0rc1" > VERSION
-     sed -i '' -e 's:VERSION.*=.*;:VERSION="2.7.0rc1":' cordova.js
-     }}}
- 
- ==== Steps for cordova-android ====
- 
-  1. On release branch:
-     {{{#!bash
-     echo "2.7.0rc1" > VERSION
-     sed -i '' -e 's:"cordova-.*js":"cordova-2.7.0rc1.js":' 
bin/templates/project/assets/www/index.html
-     sed -i '' -e 's:"cordova-.*js":"cordova-2.7.0rc1.js":' 
framework/assets/www/index.html
-     sed -i '' -e 's:cordovaVersion.*=.*;:cordovaVersion = "2.7.0rc1";:' 
framework/src/org/apache/cordova/Device.java
-     }}}
- 
- ==== Steps for cordova-ios ====
- 
-  1. On release branch:
-     {{{
-     echo "2.7.0rc1" > CordovaLib/VERSION
-     }}}
  
  == Testing & Documentation ==
  
@@ -239, +164 @@

  This is done once testing is complete, and documentation is up-to-date.
  
  {{{#!bash
+ ./cordova-coho/coho tag-release --version 2.8.0rc1 -r $REPO_NAME
- git tag 2.7.0rc1
- git push --tags origin 2.7.x
- }}}
- 
- If for some reason a tag must be altered:
- 
- {{{#!bash
- git tag 2.7.0rc1 --force
- git push --tags origin 2.7.x
  }}}
  
  Do *not* change the tag once the release .zip has been uploaded to apache 
servers and announced. Instead, create a new release candidate (going through 
all of the release steps above again).
@@ -262, +179 @@

  
  == Uploading a Release Candidate ==
  
-  1. Use the 
[[https://git-wip-us.apache.org/repos/asf?p=cordova-coho.git|coho]] script to 
create the .zip file for the release candidate.
-  1. Upload it to: TODO: Is there a place on Apache to host this?
+  1. Create the release .zip with coho:
+ {{{#!bash
+ ./cordova-coho/coho create-release-snapshot --prev-version 2.7.0 
--new-version 2.8.0rc1
+ }}}
+  1. Upload it to: https://dist.apache.org/repos/dist/release/cordova/
+ TODO: COHO tool should do this step.
  
  
  == Vote & Ship It! ==

Reply via email to