Skip to content
Snippets Groups Projects
Commit ae95051b authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Simplify more the build stage

parent 2c84cff7
No related branches found
No related tags found
1 merge request!63Conda package based CI
......@@ -30,12 +30,14 @@ run_cmd ${CONDA_FOLDER}/bin/conda config --set always_yes yes --set changeps1 no
run_cmd ${CONDA_FOLDER}/bin/conda config --set always_yes true
run_cmd ${CONDA_FOLDER}/bin/conda config --set show_channel_urls true
run_cmd ${CONDA_FOLDER}/bin/conda config --set anaconda_upload no
run_cmd ${CONDA_FOLDER}/bin/conda config --add channels ${CHANNEL_URL}
run_cmd ${CONDA_FOLDER}/bin/conda config --add channels ${CONDA_CHANNEL}
if [ -z "${CI_COMMIT_TAG}" ]; then
run_cmd ${CONDA_FOLDER}/bin/conda config --add channels ${CONDA_BETA_CHANNEL}
fi
run_cmd ${CONDA_FOLDER}/bin/conda config --set ssl_verify false
run_cmd ${CONDA_FOLDER}/bin/conda install --quiet --yes -c defaults python conda=4.4 curl conda-build=3
# copies our central build configuration to the conda folder of the package
run_cmd cp _ci/conda_build_config.yaml conda/
# updates conda installation
run_cmd ${CONDA_FOLDER}/bin/conda install --quiet --yes python conda=4.4 curl conda-build=3
# cleans up
run_cmd ${CONDA_FOLDER}/bin/conda clean --lock
......
......@@ -19,16 +19,7 @@ fi
BOB_BUILD_NUMBER=`head -n 1 ./_ci/${OS_SLUG}/${PYTHON_VERSION}/build_number.txt | tr -d '\n'`
export_env BOB_BUILD_NUMBER
if [ -z "${CI_COMMIT_TAG}" ]; then
run_cmd ${CONDA_FOLDER}/bin/conda build --quiet --override-channels -c ${CONDA_BETA_CHANNEL} -c ${CONDA_CHANNEL} -c https://repo.continuum.io/pkgs/main -c https://repo.continuum.io/pkgs/free -c https://repo.continuum.io/pkgs/r -c https://repo.continuum.io/pkgs/pro --python=${PYTHON_VERSION} conda
else
run_cmd ${CONDA_FOLDER}/bin/conda build --quiet --override-channels -c ${CONDA_CHANNEL} -c https://repo.continuum.io/pkgs/main -c https://repo.continuum.io/pkgs/free -c https://repo.continuum.io/pkgs/r -c https://repo.continuum.io/pkgs/pro --python=${PYTHON_VERSION} conda
fi
run_cmd ${CONDA_FOLDER}/bin/conda build --variant-config-files _ci/conda_build_config.yaml --quiet --python=${PYTHON_VERSION} conda
# Move the cache to conda env folder to cache it
if [ "${OSNAME}" == "linux" ]; then
mkdir -p ${CONDA_ENVS_PATH}/.pkgs
touch ${CONDA_ENVS_PATH}/.pkgs/urls
touch ${CONDA_ENVS_PATH}/.pkgs/urls.txt
fi
merge_conda_cache ${CONDA_ENVS_PATH}/.pkgs ${CONDA_FOLDER}/pkgs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment