Skip to content
Snippets Groups Projects
Commit 9196d1d3 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Support bob-devel versioning

parent befe03f6
No related branches found
No related tags found
No related merge requests found
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
set -e set -e
if [ "${#}" != 3 ]; then if [ "${#}" != 3 ]; then
echo "usage: `basename $0` <basedir> <name> <python-version>" echo "usage: `basename $0` <basedir> <name> <python-version> <bob-devel>"
echo "example: `basename $0` /opt/conda bob-devel-py35 3.5" echo "example: `basename $0` /opt/conda bob-devel-py35 3.5 2017.06.06"
exit 1 exit 1
fi fi
BASEDIR=$1 BASEDIR=$1
NAME=$2 NAME=$2
PYTHON_VERSION=$3 PYTHON_VERSION=$3
BOB_DEVEL_VERSION=$4
PYVER=`echo $PYTHON_VERSION | sed -e 's/\.//'` PYVER=`echo $PYTHON_VERSION | sed -e 's/\.//'`
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
...@@ -24,6 +25,6 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then ...@@ -24,6 +25,6 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then
fi fi
echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..." echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..."
${CONDA} create --yes --name=${NAME} --override-channels --channel=http://www.idiap.ch/software/bob/conda --channel=defaults python=${PYTHON_VERSION} bob-devel ${CONDA} create --yes --name=${NAME} --override-channels --channel=http://www.idiap.ch/software/bob/conda --channel=defaults python=${PYTHON_VERSION} bob-devel=${BOB_DEVEL}
echo "[>>] Bye!" echo "[>>] Bye!"
exit 0 exit 0
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
# Sat 28 Jan 09:16:48 2017 CET # Sat 28 Jan 09:16:48 2017 CET
if [ "${#}" != 1 ]; then if [ "${#}" != 1 ]; then
echo "usage: `basename $0` <prefix>" echo "usage: `basename $0` <prefix> <bob-devel-version>"
echo "example: `basename $0` /opt/conda" echo "example: `basename $0` /opt/conda 2017.06.06"
exit 1 exit 1
fi fi
BASEDIR=$1 BASEDIR=$1
BINDIR=$(dirname $0) BINDIR=$(dirname $0)
CONDA=${BASEDIR}/bin/conda CONDA=${BASEDIR}/bin/conda
BOB_DEVEL_VERSION=$2
echo "[>>] Cleaning conda cache..." echo "[>>] Cleaning conda cache..."
${CONDA} clean --all --yes ${CONDA} clean --all --yes
...@@ -21,5 +22,5 @@ for k in 2.7 3.5 3.6; do ...@@ -21,5 +22,5 @@ for k in 2.7 3.5 3.6; do
py=`echo $k | sed -e 's/\.//'` py=`echo $k | sed -e 's/\.//'`
e="bob-devel-py$py" e="bob-devel-py$py"
echo "[>>] Installing CI environment $e using python-$k..." echo "[>>] Installing CI environment $e using python-$k..."
${BINDIR}/from-scratch.sh ${BASEDIR} $e $k ${BINDIR}/from-scratch.sh ${BASEDIR} $e $k ${BOB_DEVEL_VERSION}
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment