Skip to content
Snippets Groups Projects
Commit 7ccd43dc authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

install conda only in build stage

parent 969b34f6
No related branches found
No related tags found
1 merge request!63Conda package based CI
...@@ -343,9 +343,12 @@ if [ -z "${CONDA_FOLDER}" ]; then ...@@ -343,9 +343,12 @@ if [ -z "${CONDA_FOLDER}" ]; then
CONDA_FOLDER=/opt/miniconda CONDA_FOLDER=/opt/miniconda
fi fi
# check if a conda installation exists. Otherwise, install one: # check if a conda installation exists. Otherwise, install one (only in build
# stage):
if [ ! -e ${CONDA_FOLDER}/bin/conda ]; then if [ ! -e ${CONDA_FOLDER}/bin/conda ]; then
install_miniconda ${CONDA_FOLDER} if [ "${CI_JOB_STAGE}" == "build" ]; then
install_miniconda ${CONDA_FOLDER}
fi
fi fi
PYVER=py$(echo ${PYTHON_VERSION} | tr -d '.') PYVER=py$(echo ${PYTHON_VERSION} | tr -d '.')
......
...@@ -17,7 +17,7 @@ stages: ...@@ -17,7 +17,7 @@ stages:
.build_template: &build_job .build_template: &build_job
stage: build stage: build
before_script: before_script:
- export PATH=${CONDA_FOLDER}:$PATH - export PATH=$CONDA_FOLDER:$PATH
- mkdir _ci - mkdir _ci
- curl https://curl.haxx.se/ca/cacert.pem > _ci/cacert.pem - curl https://curl.haxx.se/ca/cacert.pem > _ci/cacert.pem
- export CURL_CA_BUNDLE=`pwd`/_ci/cacert.pem - export CURL_CA_BUNDLE=`pwd`/_ci/cacert.pem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment