Skip to content

Commit

Permalink
add a config for running CI against the nightly driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Jan 8, 2024
1 parent aca42db commit c0db900
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .evergreen-nightly-driver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
- key: mongodb_version_override
value: nightly

include:
- filename: .evergreen.yml
2 changes: 2 additions & 0 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .evergreen/install-npm-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ set -x

npm ci --verbose

# 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"
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

Expand Down

0 comments on commit c0db900

Please sign in to comment.