cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "StepsForPluginRelease" by AndrewGrieve
Date Tue, 04 Mar 2014 04:35:56 GMT
Dear Wiki user,

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

The "StepsForPluginRelease" page has been changed by AndrewGrieve:
https://wiki.apache.org/cordova/StepsForPluginRelease?action=diff&rev1=31&rev2=32

      JIRA="CB-????" # Set this to the release bug.
  }}}
  
+ == Make sure you're up-to-date ==
+ {{{
+    # Should show no changes:
+   ./cordova-coho/coho repo-status -r plugins -b dev -b master
+   ./cordova-coho/coho repo-update -r plugins
+   ./cordova-coho/coho foreach -r plugins "git checkout dev"
+   # Merge any commits mistakenly made to master into dev:
+   (for l in cordova-plugin-*; do ( cd $l; git merge master ); done
+   # Sanity check and push if needed:
+   ./cordova-coho/coho repo-status -r plugins -b dev
+   ./cordova-coho/coho repo-push -r plugins -b dev
+ }}} 
+ 
  == Identify which plugins have changes ==
  
  {{{
@@ -66, +79 @@

  }}}
  
  
- == Merge Changes into master & tag ==
+ == Tag on Dev Branch ==
  {{{
-   for l in $ACTIVE; do ( cd $l; git checkout master; git merge dev --ff-only ); done
    for l in $ACTIVE; do ( cd $l; v="r$(grep version= plugin.xml | grep -v xml | head -n1
| cut -d'"' -f2)"; echo "Tagging $l to $v"; git tag "$v" ); done
  }}}
  
@@ -76, +88 @@

   * For each plugin that had unreleased commits:
     * Rationale: So that the version on dev is greater than the version on master.
  {{{
-   for l in $ACTIVE; do ( cd $l; git checkout dev ); done
    for l in $ACTIVE; do ( cd $l; v="$(grep version= plugin.xml | grep -v xml | head -n1 |
cut -d'"' -f2)"; if [[ $v != *-dev ]]; then v2="$(echo $v|awk -F"." '{$NF+=1}{print $0RT}'
OFS="." ORS="")-dev"; echo "$l: Setting version to $v2"; sed -i '' -E s:"version=\"$v\":version=\"$v2\":"
plugin.xml; fi) ; done
    for l in $ACTIVE; do (cd $l; git commit -am "$JIRA Incremented plugin version on dev branch."
); done
  }}}
@@ -84, +95 @@

  == Test ==
   * Create mobilespec using the old versions of plugins (by checking them out to the previous
tag)
   * Run through mobilespec, ensuring to do manual tests that relate to changes in the RELEASENOTES.md
+ 
+ == Push Dev Branch ==
+ {{{
+   # Sanity check:
+   ./cordova-coho/coho repo-status -r plugins -b dev
+   # Push:
+   for l in $ACTIVE; do ( cd $l; git push --tags https://git-wip-us.apache.org/repos/asf/$l.git
dev); done
+ }}}
  
  == Publish to dist/dev ==
  1. Ensure you have the svn repos checked out:
@@ -156, +175 @@

  }}}
  
  == If the Vote does *not* Pass ==
- * Revert adding of `-dev`
+ * Revert adding of `-dev` on dev branch
- * Address the concerns
+ * Address the concerns (on dev branch)
+ * Merge changes into master
  * Re-tag release using git tag -f
  * Add back `-dev`
  * Start a new vote
  
+ == Otherwise: Merge & Push Master Branch ==
+ {{{
+   for l in $ACTIVE; do ( cd $l; git checkout master ); done
+   for l in $ACTIVE; do ( cd $l; v=$(git describe --tags --abbrev=0 dev); git merge $v );
done
+  
+   # Sanity check:
+   ./cordova-coho/coho repo-status -r plugins -b master  
+   # Push:
+   for l in $ACTIVE; do ( cd $l; git push --tags https://git-wip-us.apache.org/repos/asf/$l.git
master); done
+ }}}
+ 
- == Otherwise: Publish to dist/ ==
+ == Publish to dist/ ==
  {{{
  cd cordova-dist
  for l in $ACTIVE; do ( svn rm plugins/$l* ); done
@@ -171, +202 @@

  svn commit -m "$JIRA Published plugins release to dist"
  
  cd ../cordova-dist-dev
- svn rm -r $JIRA
+ svn rm $JIRA
  svn commit -m "$JIRA Removing release candidates from dist/dev"
  }}}
  
- Find your release here: [[https://dist.apache.org/repos/dist/cordova/plugins]]
+ Find your release here: [[https://dist.apache.org/repos/dist/release/cordova/plugins/]]
  
- == Push & Publish! ==
+ == Publish to Plugins Registry ==
  {{{
+   for l in $ACTIVE; do ( cd $l; git checkout master ); done
+   for l in $ACTIVE; do ( cd $l; echo -n "$l: "; plugman publish . ); done
+ }}}
+ 
+ == Post blog Post ==
    # Blog Post:
    svn commit
+ 
-   # Plugin Changes:
-   ./cordova-coho/coho repo-status -r plugins -b dev -b master  
-   ./cordova-coho/coho repo-push -r plugins -b dev -b master
-   for l in $ACTIVE; do ( cd $l; git push --tags ); done
-   for l in $ACTIVE; do ( cd $l; git checkout master ); done
-   for l in $ACTIVE; do ( cd $l; echo -n $l; plugman publish . ); done
- }}}
  
  == Close JIRA Issue ==
   * Double check that the issue has comments that record the steps you took

Mime
View raw message