X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/8f4aa687e70abdd7329a2ebf928a175eb529744b..0528a6d4df9d81622f9813c2a8925dd7322a81bb:/jenkins/run-build-packages.sh diff --git a/jenkins/run-build-packages.sh b/jenkins/run-build-packages.sh index aed423d..eca16fc 100755 --- a/jenkins/run-build-packages.sh +++ b/jenkins/run-build-packages.sh @@ -70,6 +70,17 @@ if ! [[ -n "$WORKSPACE" ]]; then exit 1 fi +# Test for fpm +fpm --version >/dev/null 2>&1 + +if [[ "$?" != 0 ]]; then + echo >&2 "$helpmessage" + echo >&2 + echo >&2 "Error: fpm not found" + echo >&2 + exit 1 +fi + if [[ "$DEBUG" != 0 ]]; then echo "Workspace is $WORKSPACE" fi @@ -114,7 +125,7 @@ build_and_scp_deb () { PACKAGE_TYPE='python' fi - declare -a COMMAND_ARR=("fpm" "--maintainer=Ward Vandewege " "-s" "$PACKAGE_TYPE" "-t" "deb") + declare -a COMMAND_ARR=("fpm" "--maintainer=Ward Vandewege " "-s" "$PACKAGE_TYPE" "-t" "deb" "-x" "usr/local/lib/python2.7/dist-packages/tests") if [[ "$PACKAGE_NAME" != "$PACKAGE" ]]; then COMMAND_ARR+=('-n' "$PACKAGE_NAME") @@ -176,6 +187,9 @@ source /etc/profile.d/rvm.sh # out our git tree here chmod o+r "$WORKSPACE" -R +# More cleanup - make sure all executables that we'll package are 755 +find -type d -name 'bin' |xargs -I {} find {} -type f |xargs -I {} chmod 755 {} + # Now fix our umask to something better suited to building and publishing # gems and packages umask 0022 @@ -280,7 +294,7 @@ fi # Build arvados src deb package cd $WORKSPACE/debs -build_and_scp_deb $WORKSPACE/src-build-dir/=/usr/local/arvados/src arvados-src 'Curoverse, Inc.' 'dir' "0.1.$GIT_HASH" "-x 'usr/local/arvados/src/.git*'" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" +build_and_scp_deb $WORKSPACE/src-build-dir/=/usr/local/arvados/src arvados-src 'Curoverse, Inc.' 'dir' "0.1.$GIT_HASH" "--exclude=usr/local/arvados/src/.git" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" # clean up, check out master and step away from detached-head state cd "$WORKSPACE/src-build-dir"