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

Don't change venv (doesn't work on macosx)

parent 5d3e3096
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ fi
# zc.recipe.egg needs some special installation instructions
if [ "${CI_PROJECT_NAME}" == "bob.buildout" ]; then
run_cmd ${use_pip} install --upgrade --no-binary ":all:" zc.recipe.egg
run_cmd_ld ${use_pip} install --upgrade --no-binary ":all:" zc.recipe.egg
fi
run_cmd ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
run_cmd_ld ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
......@@ -5,23 +5,18 @@ source $(dirname ${0})/functions.sh
run_cmd_ld ./bin/buildout
# Corrects the virtualenv to take LD_LIBRARY_PATH into account
if [ ${ARCH} == "linux" ]; then
fix_venv
fi
if [ -x ./bin/bob_dbmanage.py ]; then
run_cmd ./bin/bob_dbmanage.py all download --force;
run_cmd_ld ./bin/bob_dbmanage.py all download --force;
fi
if [ -d ./doc ]; then
run_cmd ./bin/sphinx-build doc sphinx
run_cmd_ld ./bin/sphinx-build doc sphinx
fi
if [ -z "${WHEEL_TAG}" ]; then
# C/C++ extensions
run_cmd ./bin/python setup.py bdist_wheel
run_cmd_ld ./bin/python setup.py bdist_wheel
else
# Python-only packages
run_cmd ./bin/python setup.py bdist_wheel --python-tag ${WHEEL_TAG}
run_cmd_ld ./bin/python setup.py bdist_wheel --python-tag ${WHEEL_TAG}
fi
......@@ -73,7 +73,7 @@ run_cmd_ld() {
# Runs setup.py
setup() {
run_cmd ${PREFIX}/bin/python setup.py ${@}
run_cmd_ld ${PREFIX}/bin/python setup.py ${@}
}
......
......@@ -6,8 +6,8 @@ source $(dirname ${0})/functions.sh
run_cmd cd ${PREFIX}
# The tests:
run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage run --source=${CI_PROJECT_NAME} ${BOB_PREFIX_PATH}/bin/nosetests -sv ${CI_PROJECT_NAME}
run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage report
run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/sphinx-build -b doctest ${CI_PROJECT_DIR}/doc ${CI_PROJECT_NAME}/sphinx
run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage run --source=${CI_PROJECT_NAME} ${BOB_PREFIX_PATH}/bin/nosetests -sv ${CI_PROJECT_NAME}
run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage report
run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/sphinx-build -b doctest ${CI_PROJECT_DIR}/doc ${CI_PROJECT_NAME}/sphinx
run_cmd cd ${CI_PROJECT_DIR}
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