Skip to content

Commit 4064e8c

Browse files
committed
ci-build.sh: remove conda installation
This needs to happen during setup phase, not build phase.
1 parent 96640ef commit 4064e8c

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

ci-build.sh

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -180,46 +180,6 @@ EOL
180180
echo ::endgroup::
181181
fi
182182

183-
# Configure conda environment, if one is needed.
184-
if [ -f environment.yml ]; then
185-
echo ::group::"= Conda setup ="
186-
187-
condaDir=$HOME/miniconda
188-
condaSh=$condaDir/etc/profile.d/conda.sh
189-
if [ ! -f "$condaSh" ]; then
190-
echo
191-
echo "== Installing conda =="
192-
python_version=${python -V}
193-
python_version=${python_version:7:3} # get python version in the format like '2.7'
194-
if [ "${python_version}" = "2.7" ]; then
195-
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
196-
else
197-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
198-
fi
199-
rm -rf "$condaDir"
200-
bash miniconda.sh -b -p "$condaDir"
201-
checkSuccess $?
202-
fi
203-
204-
echo
205-
echo "== Updating conda =="
206-
. "$condaSh" &&
207-
conda config --set always_yes yes --set changeps1 no &&
208-
conda update -q conda &&
209-
conda info -a
210-
checkSuccess $?
211-
212-
echo
213-
echo "== Configuring environment =="
214-
condaEnv=ci-scijava
215-
test -d "$condaDir/envs/$condaEnv" && condaAction=update || condaAction=create
216-
conda env "$condaAction" -n "$condaEnv" -f environment.yml &&
217-
conda activate "$condaEnv"
218-
checkSuccess $?
219-
220-
echo ::endgroup::
221-
fi
222-
223183
# Execute Jupyter notebooks.
224184
if which jupyter >/dev/null 2>&1; then
225185
echo ::group::"= Jupyter notebooks ="

0 commit comments

Comments
 (0)