#1230 Buildserver maintenance.

v0.27.3
Robin Mills 9 years ago
parent f7c2e1fa02
commit c65d744fd8

@ -6,26 +6,28 @@ result=0
if [ -z "$JENKINS" ]; then export JENKINS=http://exiv2.dyndns.org:8080; fi
if [ -z "$DAILY" ]; then export DAILY=userContent/builds/Daily ; fi
##
# osName - print 'macosx' or 'cygwin' or 'mingw' or 'linux'
osName () {
if [ $(uname) == Darwin ]; then
echo macosx
elif [ $(uname -o) == Cygwin ]; then
echo cygwin
elif [ $(uname -o) == Msys ]; then
echo mingw
else
echo linux
fi
}
##
# which PLATFORM
# JOB_NAME is defined when script is called by Jenkins
# example: JOB_NAME=trunk-cmake-daily/label=msvc
# PLATFORM must be defined as msvc when called from ssh
if [ ! -z "$JOB_NAME" ];then
PLATFORM=$(echo $JOB_NAME | cut -d= -f 2)
fi
# PLATFORM must be defined as msvc or ming when called from ssh
if [ "$PLATFORM" == "" ]; then
export PLATFORM=''
if [ `uname` == Darwin ]; then
PLATFORM=macosx
elif [ `uname -o` == Cygwin ]; then
PLATFORM=cygwin
export PLATFORM=$(echo osName)
if ( "$PLATFORM" == "cygwin" ]; then
# tweak path to ensure the correct version of perl and expr for autotools
export "PATH=/bin:$PATH"
elif [ `uname -o` == Msys ]; then
PLATFORM=mingw
else
PLATFORM=linux
fi
fi
@ -41,6 +43,7 @@ thepath () {
fi
}
# That's all Folks!
##

@ -8,8 +8,6 @@
# 2 executes dailyTest.sh to test that the build bundles are good
# 3 rebuilds all the links in the userContent/builds for "Category" access to the builds
cd /Users/rmills/gnu/exiv2/buildserver
ssh rmills@rmillsmm 'cd ~/gnu/exiv2/buildserver ; /usr/local/bin/svn update . ; rm -rf build ; contrib/buildserver/dailyCMake.sh'
ssh rmills@rmillsmm-kubuntu 'cd ~/gnu/exiv2/buildserver ; /usr/local/bin/svn update . ; rm -rf build ; contrib/buildserver/dailyCMake.sh'
ssh rmills@rmillsmm-w7 'cd ~/gnu/exiv2/buildserver ; /usr/local/bin/svn update . ; rm -rf build ; contrib/buildserver/dailyCMake.sh'
@ -19,7 +17,7 @@ ssh rmills@rmillsmm-w7 'cd ~/gnu/exiv2/buildserver ; /usr/local/bin/svn upd
##
# test the delivery
date=$(date '+%Y-%m-%d+%H-%M-%S')
svn=$(/usr/local/bin/svn info . | grep '^Last Changed Rev' | cut -f 2 -d':' | tr -d ' ')
svn=$(ssh rmills@rmillsmm 'cd ~/gnu/exiv2/buildserver ; /usr/local/bin/svn info . | grep "^Last Changed Rev" | cut -f 2 "-d:" | tr -d " "')
output="/mmHD/Users/Shared/Jenkins/Home/userContent/builds/Daily/test-svn-${svn}-date-${date}.txt"
echo --------------------------------------
echo test log = $output

@ -218,7 +218,7 @@ testBuild()
) | tr -d $'\r' | tee "$build/dist/logs/build.log"
# exit if are in mingw and leave cygwin to package the build
if [ $(uname -o) == "Msys" ]; then echo "goodbye from mingw" ; exit 0; fi
if [ $(osName) == "mingw" ]; then echo "goodbye from mingw" ; exit 0; fi
##
# store the build for users to collect

@ -4,10 +4,10 @@ source $(find . -name buildserver.library 2>/dev/null)
echo -------------------------------
echo PLATFORM = $PLATFORM PWD = $PWD
if [ $(uname -o) == Msys ]; then
if [ $(osName) == "mingw" ]; then
echo "Windows directory (mingw) = " $(pwd -W)
fi
if [ $(uname -o) == Cygwin ]; then
if [ $(osName) == "cygwin" ]; then
echo "Windows directory (cygwin) = " $(cygpath -aw .)
fi
echo -------------------------------

Loading…
Cancel
Save