Skip to content
Snippets Groups Projects
Commit 054ceac4 authored by jaden's avatar jaden
Browse files

Merge remote-tracking branch 'origin/master' into docs-pipeline-changes

parents e9e01f42 3c3f15cd
No related branches found
No related tags found
1 merge request!58implement docs pipeline changes in ci scripts
#!/usr/bin/env bash #!/usr/bin/env bash
# Sat 24 Sep 08:12:24 2016 CEST # Tue 13 Jun 2017 17:32:07 CEST
source $(dirname ${0})/functions.sh
run_cmd rm -rf ${PREFIX}
#!/usr/bin/env bash #!/usr/bin/env bash
# Thu 22 Sep 2016 15:11:53 CEST # Tue 13 Jun 2017 17:32:29 CEST
source $(dirname ${0})/functions.sh
run_cmd rm -rf ${PREFIX}
#!/usr/bin/env bash #!/usr/bin/env bash
# Thu 22 Sep 2016 13:59:03 CEST # Tue 13 Jun 2017 17:32:16 CEST
source $(dirname ${0})/functions.sh
run_cmd rm -rf ${PREFIX}
...@@ -10,15 +10,7 @@ if [ -z "${WHEELS_REPOSITORY}" ]; then ...@@ -10,15 +10,7 @@ if [ -z "${WHEELS_REPOSITORY}" ]; then
fi fi
check_env WHEELS_REPOSITORY check_env WHEELS_REPOSITORY
# Readies a conda environment to use for installation prepare_build_env ${CONDA_FOLDER} ${PREFIX} ${CONDA_ENV}
if [ ! -d ${PREFIX} ]; then
log_info "Creating conda installation at ${PREFIX}..."
run_cmd ${CONDA_FOLDER}/bin/conda create --clone ${CONDA_ENV} --prefix ${PREFIX} --yes
else
log_info "Prefix directory ${PREFIX} exists, not re-installing..."
fi
prepare_build_env ${CONDA_FOLDER} ${PREFIX}
# Verify where pip is installed # Verify where pip is installed
use_pip=`which pip` use_pip=`which pip`
......
...@@ -5,7 +5,7 @@ source $(dirname ${0})/functions.sh ...@@ -5,7 +5,7 @@ source $(dirname ${0})/functions.sh
run_cmd $(dirname ${0})/before_test.sh run_cmd $(dirname ${0})/before_test.sh
prepare_build_env ${CONDA_FOLDER} ${PREFIX} prepare_build_env ${CONDA_FOLDER} ${PREFIX} ${CONDA_ENV}
# setup database locally and run `bob_dbmanage.py all download` # setup database locally and run `bob_dbmanage.py all download`
# if this is a database package - need auxiliary file for package # if this is a database package - need auxiliary file for package
......
...@@ -5,7 +5,7 @@ source $(dirname ${0})/functions.sh ...@@ -5,7 +5,7 @@ source $(dirname ${0})/functions.sh
run_cmd $(dirname ${0})/before_build.sh run_cmd $(dirname ${0})/before_build.sh
prepare_build_env ${CONDA_FOLDER} ${PREFIX} prepare_build_env ${CONDA_FOLDER} ${PREFIX} ${CONDA_ENV}
# Verify where pip is installed # Verify where pip is installed
use_pip=`which pip` use_pip=`which pip`
......
...@@ -249,10 +249,20 @@ dav_upload_folder() { ...@@ -249,10 +249,20 @@ dav_upload_folder() {
} }
# Activates environment and sets up compilation # Creates (clones), Activates environment and sets up compilation
# $1: root of the conda installation # $1: root of the conda installation
# $2: your current build prefix # $2: your current build prefix
# $3: the name of the conda environment to clone
prepare_build_env() { prepare_build_env() {
# Readies a conda environment to use for installation
if [ ! -d $2 ]; then
log_info "Creating conda installation at $2..."
run_cmd $1/bin/conda create --clone $3 --prefix $2 --yes
else
log_info "Prefix directory $2 exists, not re-installing..."
fi
# Activates conda environment for the build # Activates conda environment for the build
log_info "$ source $1/bin/activate $2" log_info "$ source $1/bin/activate $2"
source $1/bin/activate $2 source $1/bin/activate $2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment