root/trunk/hudson.sh
| Revision 2771, 1.1 kB (checked in by jmoore, 30 hours ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/bin/bash |
| 2 | # |
| 3 | # $Id$ |
| 4 | # |
| 5 | # Copyright 2008 Glencoe Software, Inc. All rights reserved. |
| 6 | # Use is subject to license terms supplied in LICENSE.txt |
| 7 | # |
| 8 | # Script used by hudson.openmicroscopy.org.uk |
| 9 | |
| 10 | set -e |
| 11 | set -u |
| 12 | set -x |
| 13 | |
| 14 | export JBOSS_HOME=${JBOSS_HOME:-"HOME/root/opt/jboss"} |
| 15 | export JAVA_OPTS=${JAVA_OPTS:-"-Xmx600M -Djavac.maxmem=600M -Djavadoc.maxmem=600M -XX:MaxPermSize=256m"} |
| 16 | |
| 17 | java_omero(){ |
| 18 | java $JAVA_OPTS -Domero.version=build$BUILD_NUMBER omero "$@" |
| 19 | } |
| 20 | |
| 21 | # |
| 22 | # Cleaning to prevent strange hudson errors about |
| 23 | # stale tests and general weirdness. |
| 24 | # |
| 25 | java_omero clean |
| 26 | |
| 27 | # |
| 28 | # Run the default build which most notably omits the C++ bindings. |
| 29 | # This is primarily due to build time of C++, but it also means that |
| 30 | # all the resulting build artifacts are platform-independent. Another |
| 31 | # later build can be used to produce platform-specific bits. |
| 32 | # |
| 33 | java_omero |
| 34 | |
| 35 | # |
| 36 | # Various builds for usability |
| 37 | # |
| 38 | |
| 39 | # |
| 40 | # Documentation and build reports |
| 41 | # |
| 42 | java_omero javadoc |
| 43 | java_omero findbugs |
| 44 | |
| 45 | # |
| 46 | # Prepare a distribution |
| 47 | # |
| 48 | rm -f OMERO.server-build*.zip |
| 49 | java_omero zip |
| 50 | |
| 51 | # Install into the hudson repository |
| 52 | java_omero ivy-hudson |
Note: See TracBrowser
for help on using the browser.
