Commit 03b4885c authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Assume that conda has been configured in the shell if <conda>/bin/activate

not present
parent 0b7e9761
......@@ -77,12 +77,18 @@
# dir, and install fsl-ci-rules into it. If
# conda is not on $PATH, assume it is in
# ${HOME}/miniconda3/
#
# If the <conda>/bin/activate script is not
# present for some reason, we assume that
# conda has been configured in the shell.
# This is the case on the FSL conda deploy
# runner.
- if [ "$DOCKER" == "0" ]; then
CONDABIN=$(which conda || echo "${HOME}/miniconda3/bin/conda");
CONDADIR=$(dirname ${CONDABIN})/../bin/;
${CONDABIN} create -y -p ${FSL_CI_CONFIG_DIR}/env -c conda-forge python=3.9 conda-build;
if [ -f "${CONDADIR}"/activate ]; then source ${CONDADIR}/activate ${FSL_CI_CONFIG_DIR}/env;
else ${CONDABIN} activate ${FSL_CI_CONFIG_DIR}/env; fi;
else conda activate ${FSL_CI_CONFIG_DIR}/env; fi;
fi
- if [ "$CI_PROJECT_PATH" == "fsl/conda/fsl-ci-rules" ]; then
python -m pip install .;
......
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