Skip to content

Commit

Permalink
more intuitive name
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Jan 8, 2024
1 parent 34e289c commit 1b626f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .evergreen-nightly-driver.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://github.com/evergreen-ci/evergreen/blob/main/docs/Project-Configuration/Parameterized-Builds.md#project-config
parameters:
- key: mongodb_version_override
- key: mongodb_driver_version_override
value: nightly

include:
Expand Down
4 changes: 2 additions & 2 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ functions:
env:
NODE_JS_VERSION: ${node_js_version}
DISTRO_ID: ${distro_id}
MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override}
MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override}
script: |
source .evergreen/install-node.sh
source .evergreen/install-npm-deps.sh
Expand Down Expand Up @@ -115,7 +115,7 @@ functions:
env:
NODE_JS_VERSION: ${node_js_version}
DISTRO_ID: ${distro_id}
MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override}
MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override}
script: |
source .evergreen/install-node.sh
source .evergreen/install-npm-deps.sh
Expand Down
4 changes: 2 additions & 2 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ functions:
env:
NODE_JS_VERSION: ${node_js_version}
DISTRO_ID: ${distro_id}
MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override}
MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override}
script: |
source .evergreen/install-node.sh
source .evergreen/install-npm-deps.sh
Expand Down Expand Up @@ -182,7 +182,7 @@ functions:
env:
NODE_JS_VERSION: ${node_js_version}
DISTRO_ID: ${distro_id}
MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override}
MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override}
script: |
source .evergreen/install-node.sh
source .evergreen/install-npm-deps.sh
Expand Down
8 changes: 4 additions & 4 deletions .evergreen/install-npm-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ set -x

npm ci --verbose

echo "MONOGDB_VERSION_OVERRIDE:$MONOGDB_VERSION_OVERRIDE"
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"

# if MONOGDB_VERSION_OVERRIDE is set, then we want to replace the package version
if [[ -n "$MONOGDB_VERSION_OVERRIDE" ]]; then
export REPLACE_PACKAGE="mongodb:$MONOGDB_VERSION_OVERRIDE"
# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version
if [[ -n "$MONOGDB_DRIVER_VERSION_OVERRIDE" ]]; then
export REPLACE_PACKAGE="mongodb:$MONOGDB_DRIVER_VERSION_OVERRIDE"
npm run replace-package
fi

Expand Down

0 comments on commit 1b626f1

Please sign in to comment.