Commit 9e670244 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Use source activate if possible

parent 5d3ad2b0
......@@ -19,7 +19,7 @@ import subprocess as sp
import yaml
__version__ = '0.16.1'
__version__ = '0.16.2'
"""Current version of the fsl-ci-rules."""
......
......@@ -73,7 +73,8 @@
- if [ "$DOCKER" == "0" ]; then
CONDADIR=$(dirname $(which conda))
conda create -y -p ${FSL_CI_CONFIG_DIR}/env -c conda-forge python=3.9 conda-build;
conda activate ${FSL_CI_CONFIG_DIR}/env;
if [ -f "${CONDADIR}"/activate ]; then source ${CONDADIR}/activate ${FSL_CI_CONFIG_DIR}/env;
else conda activate ${FSL_CI_CONFIG_DIR}/env; fi
fi
- if [ "$CI_PROJECT_PATH" == "fsl/fsl-ci-rules" ]; then
python -m pip install .;
......
Supports Markdown
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