Commit b17bd835 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Default to ~/miniconda3 if conda is not on $PATH

parent edd1f327
......@@ -73,12 +73,15 @@
# If running on docker, install fsl-ci-rules
# directly into the miniconda base environment.
# Otherwise create a conda env in the job work
# dir, and install fsl-ci-rules into it
# dir, and install fsl-ci-rules into it. If
# conda is not on $PATH, assume it is in
# ${HOME}/miniconda3/
- if [ "$DOCKER" == "0" ]; then
CONDADIR=$(dirname $(which conda))/../bin/;
conda create -y -p ${FSL_CI_CONFIG_DIR}/env -c conda-forge python=3.9 conda-build;
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 conda activate ${FSL_CI_CONFIG_DIR}/env; fi;
else ${CONDABIN} activate ${FSL_CI_CONFIG_DIR}/env; 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