Newer
Older
#!/bin/sh
usage()
{
echo ""
function move_to_file_server {
echo "Moving new openBIS components to file server"
OPENBIS_PATH=~openbis/fileserver/sprint_builds/openBIS
chmod g+w -R $SPRINT_DIR
}
TODAY=`date "+%Y-%m-%d"`
# cd to repository root directory
cd "$(dirname "$0")/../../../.."
# checkout tag
git checkout $tag
if [ $? -ne 0 ]; then echo "Tag does not exist!"; exit 1; fi
# build
cd openbis_standard_technologies
./gradlew :clientsAndApis -x test
./gradlew :generateJavadoc
cd ../installation
./gradlew :build -x test
cd ../plasmid
./gradlew :build -x test
cp -r openbis/openbis_standard_technologies/targets/gradle/docs/javadoc ~openbis/fileserver/doc/openbis/$tag
cd ~openbis/fileserver/doc/openbis
# move components to fileserver
mv openbis/openbis_standard_technologies/targets/gradle/distributions/openBIS-clients-and-APIs*.zip .
mv openbis/installation/targets/gradle/distributions/openBIS-installation-standard-technologies*.tar.gz .
mv openbis/plasmid/targets/gradle/distributions/datastore_server_plugin-plasmid*.zip .