Skip to content

Commit 9f19923

Browse files
refactor(NODE-5432): Remove usages of Buffer from Node C++ bindings (#682)
1 parent 6b95301 commit 9f19923

File tree

13 files changed

+1391
-1772
lines changed

13 files changed

+1391
-1772
lines changed

.evergreen/check-lint.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -z ${LINT_TARGET+omitted} ]; then echo "LINT_TARGET is unset, must have value typescript or cpp" && exit 1; fi
4+
5+
# set -o xtrace # Write all commands first to stderr
6+
set -o errexit # Exit the script with error if any of the commands fail
7+
8+
echo "Setting up environment"
9+
10+
export PATH="/opt/mongodbtoolchain/v2/bin:$PATH"
11+
hash -r
12+
13+
NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
14+
export NODE_LTS_VERSION=${NODE_LTS_VERSION}
15+
source ./.evergreen/install-dependencies.sh
16+
17+
# install dependencies but intentionally do not
18+
# run prebuild or Typescript, since we are only
19+
# linting.
20+
npm install --ignore-scripts
21+
22+
if [ "$LINT_TARGET" == "typescript" ]; then
23+
npm run check:eslint
24+
elif [ "$LINT_TARGET" == "cpp" ]; then
25+
npm run check:clang-format
26+
else
27+
echo "unsupported value for LINT_TARGET: $LINT_TARGET"
28+
exit 1
29+
fi

.evergreen/test.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,10 @@ NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
1212
export NODE_LTS_VERSION=${NODE_LTS_VERSION}
1313
source ./.evergreen/install-dependencies.sh
1414

15-
# Handle the circular dependency when testing with a real client.
16-
MONGODB_CLIENT_ENCRYPTION_OVERRIDE="$(pwd)"
17-
export MONGODB_CLIENT_ENCRYPTION_OVERRIDE
18-
1915
# install node dependencies
2016
echo "Installing package dependencies (includes a static build)"
2117
bash ./etc/build-static.sh
2218

23-
if [[ $OMIT_PEER_DEPS != "true" ]]; then
24-
npm install '@aws-sdk/credential-providers'
25-
npm install 'gcp-metadata'
26-
fi
27-
2819
# Run tests
2920
echo "Running tests"
30-
npm run check:lint
31-
MONGODB_NODE_SKIP_LIVE_TESTS=true npm test
21+
npm test

0 commit comments

Comments
 (0)