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

Set CONDA_FOLDER and BOB_PREFIX_PATH before sourcing functions.sh

parent 31fbc1ed
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -41,6 +41,14 @@ DOCPASS="${PYPIUSER:-unknown}" ...@@ -41,6 +41,14 @@ DOCPASS="${PYPIUSER:-unknown}"
#GITLAB_CHECKOUT_STRATEGY="https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/" #GITLAB_CHECKOUT_STRATEGY="https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/"
GITLAB_CHECKOUT_STRATEGY="git@gitlab.idiap.ch:" GITLAB_CHECKOUT_STRATEGY="git@gitlab.idiap.ch:"
if [ -n "$3" ]; then
CONDA_FOLDER=$3;
fi
if [ -n "$4" ]; then
BOB_PREFIX_PATH=${CONDA_FOLDER}/envs/$4;
fi
# Source useful functions # Source useful functions
source ${basedir}/_ci/functions.sh source ${basedir}/_ci/functions.sh
...@@ -49,13 +57,7 @@ check_env CI_PROJECT_URL ...@@ -49,13 +57,7 @@ check_env CI_PROJECT_URL
# Overrides some stuff # Overrides some stuff
if [ "${CI_BUILD_REF_NAME}" == "@local" ]; then if [ "${CI_BUILD_REF_NAME}" == "@local" ]; then
log_info "Overwriting CONDA_FOLDER since in @local build..."
if [ -n "$3" ]; then CONDA_FOLDER=$3; fi
if [ -n "$4" ]; then BOB_PREFIX_PATH=${CONDA_FOLDER}/envs/$4; fi
LD_LIBRARY_PATH=${BOB_PREFIX_PATH}/lib
export_env CONDA_FOLDER export_env CONDA_FOLDER
export_env LD_LIBRARY_PATH
export_env BOB_PREFIX_PATH
fi fi
log_info "Exporting variables for subsequent builds..." log_info "Exporting variables for subsequent builds..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment