diff --git a/.evergreen-nightly-driver.yml b/.evergreen-nightly-driver.yml new file mode 100644 index 000000000..f71fa6205 --- /dev/null +++ b/.evergreen-nightly-driver.yml @@ -0,0 +1,6 @@ +parameters: + - key: mongodb_version_override + value: nightly + +include: + - filename: .evergreen.yml \ No newline at end of file diff --git a/.evergreen.yml b/.evergreen.yml index 4f3ca5cb2..eb9f47fa4 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -78,6 +78,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} + MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh @@ -114,6 +115,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} + MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index 3889a2bb3..951e95322 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -145,6 +145,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} + MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh @@ -181,6 +182,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} + MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index abf00add8..29472c0f2 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -3,6 +3,12 @@ set -x npm ci --verbose +# if MONOGDB_VERSION_OVERRIDE is set, then we want to replace the package version +if [[ -z "$MONOGDB_VERSION_OVERRIDE" ]]; then + export REPLACE_PACKAGE="mongodb:$MONOGDB_VERSION_OVERRIDE" + npm run replace-package +fi + # if we rewrote this script in javascript using just builtin node modules we could skip the npm ci above npm run mark-ci-required-optional-dependencies