Only install needed requirements

We currently install SBCL on all systems - but only this repository
needs it. Also, this repo needs far less packages than we install by
default and the version of SBCL that is installed is so out of date that
the tests no longer pass.

Add an bindep.txt file containing a cross-platform list of
dependencies needed for running included tests.

Convert SBCL version to one installed by CIM so that we always get an
up to date version.

This change is self-testing.

Related Change: If8b4e412f8ae48c6c0133634df4a95d10a876be3
Change-Id: Ie1ecb184bd825aea4dbb315cf125b991ae22d682
This commit is contained in:
Andreas Jaeger 2016-03-28 15:16:16 +02:00
parent 9c6357068d
commit 82f9e84b86
3 changed files with 19 additions and 5 deletions

5
bindep.txt Normal file
View File

@ -0,0 +1,5 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
build-essential [platform:dpkg]
language-pack-en [platform:dpkg]

View File

@ -2,9 +2,17 @@
set -e
set -x
export HOME=$PWD/.test-env
mkdir $HOME
[ -d $HOME ] || mkdir $HOME
cd $HOME
wget -q http://beta.quicklisp.org/quicklisp.lisp -O quicklisp.lisp
export CIM_HOME=$HOME
if [ ! -e $HOME/init.sh ]; then
curl -L https://raw.github.com/KeenS/CIM/master/scripts/cim_installer | /bin/sh
fi
source "$CIM_HOME/init.sh"
cim install sbcl || true
cim use sbcl
sbcl --script ../update-deps.lisp
ln -s $PWD/.. ~/quicklisp/local-projects/cl-openstack-client
if [ ! -L ~/quicklisp/local-projects/cl-openstack-client ]; then
ln -s $PWD/.. ~/quicklisp/local-projects/cl-openstack-client
fi
sbcl --script ../run-tests.lisp

View File

@ -1,5 +1,6 @@
(load (make-pathname :directory (pathname-directory (user-homedir-pathname)) :name "quicklisp" :type "lisp"))
(quicklisp-quickstart:install)
(load (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname)))
(dolist (file '("../requirements.txt" "../test-requirements.txt"))
(with-open-file (s file)
(loop for line = (read-line s nil)