2019-04-04 16:07:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
# The filesystem location of the root of a virtualenv we can use to get/build
|
|
|
|
# wheels.
|
|
|
|
BOOTSTRAP_VENV="$1"
|
|
|
|
shift
|
|
|
|
|
|
|
|
# The filesystem location of the root of the project source. We need this to
|
|
|
|
# know what wheels to get/build, of course.
|
|
|
|
PROJECT_ROOT="$1"
|
|
|
|
shift
|
2018-06-15 18:21:33 +00:00
|
|
|
|
2019-04-04 16:15:35 +00:00
|
|
|
# The filesystem location of the wheelhouse which we'll populate with wheels
|
|
|
|
# for all of our dependencies.
|
|
|
|
WHEELHOUSE_PATH="$1"
|
|
|
|
shift
|
|
|
|
|
2018-06-15 19:40:50 +00:00
|
|
|
TAHOE_LAFS_TOX_ENVIRONMENT=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
TAHOE_LAFS_TOX_ARGS=$1
|
2018-06-15 20:02:49 +00:00
|
|
|
shift || :
|
2018-06-15 19:40:50 +00:00
|
|
|
|
2019-04-04 16:15:35 +00:00
|
|
|
# Tell pip where it can find any existing wheels.
|
|
|
|
export PIP_FIND_LINKS="file://${WHEELHOUSE_PATH}"
|
2023-04-27 14:44:10 +00:00
|
|
|
export PIP_NO_INDEX="1"
|
2019-04-06 13:41:31 +00:00
|
|
|
|
2018-07-04 15:19:50 +00:00
|
|
|
# Get everything else installed in it, too.
|
2019-04-04 16:07:32 +00:00
|
|
|
"${BOOTSTRAP_VENV}"/bin/tox \
|
|
|
|
-c "${PROJECT_ROOT}"/tox.ini \
|
2018-07-06 14:54:31 +00:00
|
|
|
--workdir /tmp/tahoe-lafs.tox \
|
|
|
|
--notest \
|
|
|
|
-e "${TAHOE_LAFS_TOX_ENVIRONMENT}" \
|
|
|
|
${TAHOE_LAFS_TOX_ARGS}
|