diff --git a/gitlab/before_test.sh b/gitlab/before_test.sh index 4ea6221327b84ba5a7308ca9337631728e67a451..39680f828eeff9dd2f0556978f5852072c9b3abb 100755 --- a/gitlab/before_test.sh +++ b/gitlab/before_test.sh @@ -12,6 +12,11 @@ PREFIX=`pwd`/${CONDA_PREFIX} run_cmd $(dirname ${0})/before_build.sh +# Source the newly created conda environment +log_info "Running \"source ${CONDA_FOLDER}/bin/activate ${PREFIX}\"..." +source ${CONDA_FOLDER}/bin/activate ${PREFIX} +log_info "Environment ${PREFIX} activated" + # Verify where pip is installed use_pip=`which pip` if [ -z "${use_pip}" ]; then @@ -26,4 +31,4 @@ if [ "${CI_PROJECT_NAME}" == "bob.buildout" ]; then run_cmd ${use_pip} install --no-binary ":all:" zc.recipe.egg fi -run_cmd ${PREFIX}/bin/pip install --use-wheel --no-index --pre dist/*.whl +run_cmd ${use_pip} install --use-wheel --no-index --pre dist/*.whl