mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
77 lines
2.4 KiB
Bash
77 lines
2.4 KiB
Bash
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 /data/multiversion
|
|
|
|
edition="${multiversion_edition}"
|
|
platform="${multiversion_platform}"
|
|
architecture="${multiversion_architecture}"
|
|
|
|
$python buildscripts/resmoke.py setup-multiversion \
|
|
--installDir /data/install \
|
|
--linkDir /data/multiversion \
|
|
--edition $edition \
|
|
--platform $platform \
|
|
--architecture $architecture \
|
|
--githubOauthToken "${global_github_oauth_token}" \
|
|
--useLatest 3.6 4.0
|
|
|
|
# The platform and architecture for how some of the binaries are reported in
|
|
# https://downloads.mongodb.org/full.json changed between MongoDB 4.0 and MongoDB 4.2.
|
|
# Certain build variants define additional multiversion_*_42_or_later expansions in order to
|
|
# be able to fetch a complete set of versions.
|
|
|
|
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
|
|
|
|
$python buildscripts/resmoke.py setup-multiversion \
|
|
--installDir /data/install \
|
|
--linkDir /data/multiversion \
|
|
--edition $edition \
|
|
--platform $platform \
|
|
--architecture $architecture \
|
|
--githubOauthToken "${global_github_oauth_token}" \
|
|
--useLatest 4.2 4.2.1
|
|
|
|
# The platform and architecture for how some of the binaries are reported in
|
|
# https://downloads.mongodb.org/full.json changed between MongoDB 4.2 and MongoDB 4.4.
|
|
# Certain build variants define additional multiversion_*_44_or_later expansions in order to
|
|
# be able to fetch a complete set of versions.
|
|
|
|
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
|
|
|
|
$python buildscripts/resmoke.py setup-multiversion \
|
|
--installDir /data/install \
|
|
--linkDir /data/multiversion \
|
|
--edition $edition \
|
|
--platform $platform \
|
|
--architecture $architecture \
|
|
--githubOauthToken "${global_github_oauth_token}" \
|
|
--useLatest 4.4 4.7 4.8 4.9
|