From 5aec867b2fae0ff039d0ca4228ccceadecf316c9 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 14 Jul 2013 12:04:52 -0400 Subject: [PATCH] Added release script template and build.xml adjustments --- build.xml | 49 ++++++++++++++++++++++++++++++--------------- release.template | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 16 deletions(-) create mode 100644 release.template diff --git a/build.xml b/build.xml index ee4542c5..713578f9 100644 --- a/build.xml +++ b/build.xml @@ -806,7 +806,7 @@ Update the gh-pages branch with the current site ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> - + @@ -817,7 +817,7 @@ Publish binaries to Google Code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> - + Uploading Gitblit ${project.version} binaries @@ -869,32 +869,23 @@ - + Uploading Gitblit ${project.version} website - - + - - - - + Prepare ${project.version} release - + ${project.name} ${project.version} release + + + + + + + + + + + + + + + + + + + + + + + + + Reset build identifiers for next development cycle - + diff --git a/release.template b/release.template new file mode 100644 index 00000000..8342bb51 --- /dev/null +++ b/release.template @@ -0,0 +1,52 @@ +#!/bin/bash +# +# ${project.version} release script +# + +# go back one commit to RELEASE commit +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Checking out ${project.version} RELEASE commit ${project.commitId}" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +git checkout ${project.commitId} + +# build RELEASE artifacts +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Building ${project.version} RELEASE artifacts" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +ant clean buildAll + +# upload artifacts +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Uploading ${project.version} artifacts" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +ant publishBinaries + +# build site, update gh-pages, and ftp upload site to hosting provider +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Building ${project.version} website" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +ant publishSite + +# return to project master +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Checking out master" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +git checkout master + +# push project branches +echo "" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "Pushing master, gh-pages, and tag ${project.tag}" +echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +echo "" +git push origin master gh-pages tag ${project.tag} -- 2.39.5