mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
3048120b43
GitOrigin-RevId: ab976ba799c4cbc6cdd1ac8d6c1a27ba4e2012f0
39 lines
971 B
Bash
Executable File
39 lines
971 B
Bash
Executable File
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
|
. "$DIR/prelude.sh"
|
|
|
|
cd src
|
|
|
|
set -o errexit
|
|
set -o verbose
|
|
|
|
# activate_venv will make sure we are using python 3
|
|
activate_venv
|
|
setup_db_contrib_tool
|
|
|
|
rm -rf /data/install /data/multiversion
|
|
|
|
edition="${multiversion_edition}"
|
|
platform="${multiversion_platform}"
|
|
architecture="${multiversion_architecture}"
|
|
|
|
version=${project#mongodb-mongo-}
|
|
version=${version#v}
|
|
|
|
if [ ! -z "${multiversion_platform_50_or_later}" ]; then
|
|
platform="${multiversion_platform_50_or_later}"
|
|
fi
|
|
|
|
# This is primarily for tests for infrastructure which don't always need the latest
|
|
# binaries.
|
|
db-contrib-tool setup-repro-env \
|
|
--installDir /data/install \
|
|
--linkDir /data/multiversion \
|
|
--edition $edition \
|
|
--platform $platform \
|
|
--architecture $architecture \
|
|
--evgVersionsFile multiversion-downloads.json \
|
|
$version
|
|
|
|
dist_test_dir=$(find /data/install -type d -iname "dist-test")
|
|
mv "$dist_test_dir" "$(pwd)"
|