Commit bf2cffba authored by Philip ABBET's avatar Philip ABBET

Version 1.3.0 revision 5: Support biowave/2

parent a6870833
Pipeline #14153 passed with stage
in 11 minutes 8 seconds
#! /bin/bash
CONTAINER_NAME=docker.idiap.ch/beat/beat.env.db:1.3.0r4
CONTAINER_NAME=docker.idiap.ch/beat/beat.env.db:1.3.0r5
PACKAGES=(
......@@ -27,7 +27,7 @@ PACKAGES=(
PRIVATE_PACKAGES=(
"bob.db.biowave_v1=git@gitlab.idiap.ch:bob/bob.db.biowave_v1.git"
"bob.db.biowave_v1=git@gitlab.idiap.ch:bob/bob.db.biowave_v1.git#15be9c8c1d71921fe4f0b130582d9b80d8e391b2"
)
......@@ -41,12 +41,21 @@ for PACKAGE in ${PRIVATE_PACKAGES[@]}; do
KEY="${PACKAGE%%=*}"
VALUE="${PACKAGE#*=}"
if [[ "${VALUE}" == *"#"* ]]; then
REPOSITORY="${VALUE%%\#*}"
BRANCH="${VALUE#*\#}"
else
REPOSITORY="${VALUE}"
BRANCH=""
fi
echo -n "Downloading private package $KEY... "
if [ -d $KEY ]; then
OUTPUT=$(git -C $KEY checkout master 2>&1)
OUTPUT=$(git -C $KEY pull 2>&1)
else
OUTPUT=$(git clone $VALUE 2>&1)
OUTPUT=$(git clone $REPOSITORY $KEY 2>&1)
fi
if [ $? -ne 0 ]; then
......@@ -56,8 +65,20 @@ for PACKAGE in ${PRIVATE_PACKAGES[@]}; do
SUFFIX="_lite"
else
echo "OK"
PACKAGES+=("$KEY")
if [ -n "$BRANCH" ]; then
OUTPUT=$(git -C $KEY checkout ${BRANCH} 2>&1)
fi
if [ $? -ne 0 ]; then
echo "FAILED2"
echo "${OUTPUT}"
echo
SUFFIX="_lite"
else
echo "OK"
PACKAGES+=("$KEY")
fi
fi
done
......
......@@ -7,7 +7,7 @@
"avspoof/3",
"banca/3",
"biosecurid_face/2",
"biowave/1",
"biowave/2",
"casme2/3",
"cbsr_nir_vis_2/3",
"cpqd/3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment