aboutsummaryrefslogtreecommitdiff
path: root/unit-test.sh
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2022-03-11 07:21:18 -0600
committerKelley Spoon <kelley.spoon@linaro.org>2022-03-11 18:18:16 +0000
commit5c6ce86bc0734a4934118aa6cd534cbb428dea60 (patch)
tree98474069f680ea05fb6e85478609f4376d33d758 /unit-test.sh
parent8a0ad2ccd1b8624c606c620089d574441d975534 (diff)
llp: install build reqs for python-ldap
We're using python-ldap=3.3.1 now, which must be build from source since the latest supported version is 2.2.4. Let's apt-get the build requirements in the unit-test.sh script so Jenkins can be useful instead of always erroring on the ldap build failure. Change-Id: I582d2d1480e185b705153f50367ea51e4b61d953 Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org> Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40741
Diffstat (limited to 'unit-test.sh')
-rwxr-xr-xunit-test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/unit-test.sh b/unit-test.sh
index 5c8729e..fbb13e7 100755
--- a/unit-test.sh
+++ b/unit-test.sh
@@ -3,14 +3,19 @@
HERE=$(dirname $(readlink -f $0))
cd $HERE
+# python-ldap 3.3.1 is going to trigger
+# a build, so need to support it
+sudo apt install -y -f libpython-dev libldap2-dev libsasl2-dev
+
SKIP_LINT="${SKIP_LINT-1}"
VENV_DIR="${VENV_DIR-$HERE/.venv}"
if [ ! -f /usr/bin/virtualenv ] ; then
echo "installing python-virutalenv"
- sudo apt-get install -f python-virtualenv
+ sudo apt-get install -y -f python-virtualenv
fi
+
if [ -z $VIRTUAL_ENV ] ; then
echo "creating venv: $VENV_DIR ..."
virtualenv --python=`which python2` $VENV_DIR