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

[ci] More fixes

parent 99fefff7
No related branches found
No related tags found
No related merge requests found
Pipeline #25790 failed
......@@ -96,9 +96,20 @@ install_miniconda() {
hash -r
}
# Exports a given environment variable, verbosely
export_env() {
check_defined "${1}"
export ${1}
log_info "export ${1}=${!1}"
}
check_defined CONDA_ROOT
check_defined CI_PROJECT_DIR
CONDARC=${CONDA_ROOT}/condarc
export_env CONDARC
# checks if a conda installation exists. Otherwise, installs one
if [ ! -e ${CONDA_ROOT}/bin/conda ]; then
install_miniconda ${CONDA_ROOT}
......
......@@ -41,8 +41,11 @@ check_defined CI_PROJECT_NAME
check_defined CI_COMMIT_TAG
check_defined PYTHON_VERSION
CONDARC=${CONDA_ROOT}/condarc
export_env CONDARC
BOB_PACKAGE_VERSION=`cat version.txt | tr -d '\n'`;
check_defined BOB_PACKAGE_VERSION
export_env BOB_PACKAGE_VERSION
# Makes sure we activate the base environment if available
run_cmd source ${CONDA_ROOT}/etc/profile.d/conda.sh
......
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