From: Peter Amstutz Date: Sat, 29 Aug 2015 19:15:55 +0000 (-0400) Subject: Sets up local repositories for both centos (yum) and debian (apt), installs X-Git-Url: https://git.arvados.org/arvados-dev.git/commitdiff_plain/8713e250470011db40d0cc9f1a02afbf98d2853c Sets up local repositories for both centos (yum) and debian (apt), installs from there as if an end user would. --- diff --git a/jenkins/common-test-packages.sh b/jenkins/common-test-packages.sh new file mode 100755 index 0000000..869f054 --- /dev/null +++ b/jenkins/common-test-packages.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +FAIL=0 + +for so in $(find . -name "*.so") ; do + if ldd $so | grep "not found" ; then + echo "^^^ Missing while scanning $so ^^^" + FAIL=1 + fi +done + +if ! python < Packages.gz exec docker run \ --rm \ --volume=$WORKSPACE/packages/$2:/mnt \ --volume=$self:/root/run-test.sh \ + --volume=$base/common-test-packages.sh:/root/common-test.sh \ --workdir=/mnt \ $3 \ /root/run-test.sh @@ -22,9 +25,15 @@ fi echo "deb file:///mnt /" >>/etc/apt/sources.list apt-get update -apt-get --assume-yes --force-yes install python-arvados-python-client python-arvados-fuse +if ! apt-get --assume-yes --force-yes install python-arvados-python-client python-arvados-fuse ; then + exit 1 +fi + +mkdir -p /tmp/opts +cd /tmp/opts + +for r in /mnt/python-*amd64.deb ; do + dpkg-deb -x $r . +done -python </etc/yum.repos.d/localrepo.repo <