0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 08:30:56 +01:00
mongodb/evergreen/compiled_binaries_get.sh

46 lines
1.3 KiB
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
rm -rf /data/install dist-test/bin
edition="${multiversion_edition}"
platform="${multiversion_platform}"
architecture="${multiversion_architecture}"
if [ ! -z "${multiversion_edition_42_or_later}" ]; then
edition="${multiversion_edition_42_or_later}"
fi
if [ ! -z "${multiversion_platform_42_or_later}" ]; then
platform="${multiversion_platform_42_or_later}"
fi
if [ ! -z "${multiversion_architecture_42_or_later}" ]; then
architecture="${multiversion_architecture_42_or_later}"
fi
if [ ! -z "${multiversion_edition_44_or_later}" ]; then
edition="${multiversion_edition_44_or_later}"
fi
if [ ! -z "${multiversion_platform_44_or_later}" ]; then
platform="${multiversion_platform_44_or_later}"
fi
if [ ! -z "${multiversion_architecture_44_or_later}" ]; then
architecture="${multiversion_architecture_44_or_later}"
fi
# This is primarily for tests for infrastructure which don't always need the latest
# binaries.
$python buildscripts/resmoke.py setup-multiversion \
--installDir /data/install \
--linkDir dist-test/bin \
--edition $edition \
--platform $platform \
--architecture $architecture \
--useLatest master