GitHub user klcodanr opened a pull request:
https://github.com/apache/sling/pull/86
Add Build Staged Release Script
This script is mean to assist in validating Sling releases. It will:
* Download and start the latest Sling Launchpad
* Download the release artifacts
* Locate the associated tag in SVN
* Attempt to build and install each artifact
* Download and run the Sling Integration tests
* Shutdown and cleanup the sling instance
It supports builds with multiple subprojects where they need to be build in
a particular order. For example for release
[1233](http://apache-sling.73963.n3.nabble.com/VOTE-Release-Apache-Sling-Scripting-Sightly-JS-Use-Provider-1-0-4-td4049579.html)
the command would be:
./build_staged_release.sh 1233 -o
org.apache.sling.scripting.sightly.js.provider,org.apache.sling.scripting.sightly.testing,org.apache.sling.scripting.sightly.testing-content
I've tested it on OSX, Ubuntu and CentOS. It does require (and will
display an error message if you don't have installed:
* Subversion
* Maven
* XMLLint
The only thing I'm not 100% sure on is the integration tests. It *seems*
correct, but never seems to be successful. This could also indicate issues in
our integration tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/klcodanr/sling trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/sling/pull/86.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #86
----
commit 1c9f22b08b1f7a0789cdd582c33f944ebcae1439
Author: Dan Klco <[email protected]>
Date: 2015-03-19T21:25:54Z
Adding initial copy of the build staged release script
commit 2a8c590811acbf0f81f52cfcfc4efc6f55ad2391
Author: Dan Klco <[email protected]>
Date: 2015-03-20T20:09:08Z
updated to cleanup and shutdown on interrupt and making sure sling starts
before it tries to upload the bundle
commit 311129ef7c263b34ae6e942412ddc5592c4be806
Author: Dan Klco <[email protected]>
Date: 2015-03-20T20:50:34Z
Adding a section to set the MAVEN_OPTS
commit 7e3c4fdeefb20a306796b3cb9c8bd7d48a59de85
Author: Dan Klco <[email protected]>
Date: 2015-03-20T21:00:29Z
Fixing the case on maven opts memory case
commit 528963acab6796eb67e66fc65351bd30206db334
Author: Dan Klco <[email protected]>
Date: 2015-03-23T03:04:58Z
Updated to download the latest snapshot build from the apache maven
snapshots
commit 8fb5f8c0a5d0a36efda64c47d33ecf319da93886
Author: Dan Klco <[email protected]>
Date: 2015-03-23T03:11:54Z
Changed to not background the download
commit 6cee7ed37a47b785a41be5c89c1e7116a1247942
Author: Dan Klco <[email protected]>
Date: 2015-03-23T19:14:58Z
Updating the script to have the option to leave sling running
commit db0a07e01815fd2c17c0d4342131be868fe4686d
Author: Dan Klco <[email protected]>
Date: 2015-04-01T04:41:13Z
Updated to work with non-bash shells
commit b0ba6ba508902bef5895dee0e49913022030f21c
Author: Dan Klco <[email protected]>
Date: 2015-04-01T04:44:42Z
Updating to check if xmllint is installed
commit 50a4e370052b321e73d47fb19d2d76317c238f28
Author: Dan Klco <[email protected]>
Date: 2015-04-01T04:45:40Z
Hopefully redirected error to /dev/null
commit 9e4f8e95c440d9ea15702be839c89182cdd0f96f
Author: Dan Klco <[email protected]>
Date: 2015-04-01T04:48:40Z
Update build_staged_release.sh
commit 529339140f2c0d6f207e4931436d8784f2cb7965
Author: Dan Klco <[email protected]>
Date: 2015-04-01T04:53:57Z
fixing more bash vs other shell syntax issues
commit 040428c83b0b2fb3f260c95cc8306b61db22552f
Author: Dan Klco <[email protected]>
Date: 2015-04-01T05:34:28Z
Update build_staged_release.sh
commit 1c9c565a0e357a551f260136b53453c6b3795c61
Author: Dan Klco <[email protected]>
Date: 2015-04-01T05:49:16Z
Fixed to wait the correct number of times
commit 65fe0e2790fb6dfad64925412f861588e407cc44
Author: Dan Klco <[email protected]>
Date: 2015-04-01T14:24:24Z
Fixing quotes
commit 848848ee9ef2bb476ebeed41c44dd7259d3abf20
Author: Dan Klco <[email protected]>
Date: 2015-04-01T14:39:05Z
Making adjustments to the script to support OSX
commit 6016010293d1c2c91ca0ed29a81545859530dbab
Author: Dan Klco <[email protected]>
Date: 2015-04-14T15:19:03Z
Updating to handle just help
commit b4c6d48c99e8152b011532231f2de30dad4cd9df
Author: Dan Klco <[email protected]>
Date: 2015-04-14T19:23:21Z
Hopefully have the launchpad download working across all major *nix variants
commit d951b2302bdca43f06e765e4d1709503a0c6af57
Author: Dan Klco <[email protected]>
Date: 2015-04-17T20:52:15Z
Fixing the order functionality and updating the help
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---