You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1017 B
Bash
44 lines
1017 B
Bash
#!/bin/bash
|
|
|
|
##
|
|
# jenkins_daily.sh
|
|
# At the moment, this performs a CMake/msvc build
|
|
##
|
|
|
|
##
|
|
# environment
|
|
# JENKINS : URL of jenkins server. Default http://exiv2.dyndns.org:8080
|
|
if [ -z "$JENKINS" ]; then export JENKINS=http://exiv2.dyndns.org:8080; fi
|
|
|
|
##
|
|
# determine location of the build and source directories
|
|
exiv2=$(cygpath -aw .)
|
|
build=$(cygpath -aw .\\build)
|
|
dist=$(cygpath -au .\\build\\dist)
|
|
msvc=$(cygpath -aw ./contrib/cmake/msvc)
|
|
|
|
##
|
|
# create a clean directory for an out-of-source build
|
|
rm -rf $build
|
|
mkdir -p $build
|
|
|
|
##
|
|
# get windows cmd.exe to perform the build
|
|
# use a sub-shell to temporarily set path for svn/7z/cmake/cmd
|
|
(
|
|
PATH="$msvc:c:\\Program Files\\csvn\\bin:c:\\Program Files\\7-zip:c:\\Program Files (x86)\\cmake\\bin:$PATH:/cygdrive/c/Windows/System32"
|
|
result=0
|
|
cmd.exe /c "cd $build && vcvars 2013 64 && cmakeBuild --rebuild --exiv2=$exiv2 --webready"
|
|
result=$?
|
|
)
|
|
|
|
##
|
|
# test the build
|
|
pushd test
|
|
source testMSVC.sh "$dist"
|
|
popd
|
|
|
|
exit $result
|
|
# That's all Folks!
|
|
##
|