Skip to content

Commit 95718d3

Browse files
Revert "don't even have copy of file for confusion"
This reverts commit 80b2faf.
1 parent 80b2faf commit 95718d3

File tree

2 files changed

+21
-24
lines changed

2 files changed

+21
-24
lines changed

.evergreen/prepare-mongodb-aws-ecs-auth.sh

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,9 @@ mkdir -p $ECS_SRC_DIR/.evergreen
1010
set -ex
1111

1212
# write test file
13-
cat <<EOF >$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
14-
#!/bin/bash
15-
16-
set -o xtrace # Write all commands first to stderr
17-
set -o errexit # Exit the script with error if any of the commands fail
18-
19-
export MONGODB_URI="$1"
20-
21-
tar -xzf src/src.tgz
22-
# produces src/ and drivers-tools/
23-
24-
cd src
25-
26-
source ./.evergreen/prepare-shell.sh # should not run git clone
27-
28-
# load node.js
29-
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
30-
31-
# run the tests
32-
npm install aws4
33-
export MONGODB_AWS_SDK=$MONGODB_AWS_SDK
34-
if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi
35-
npm run check:aws
36-
EOF
13+
echo "export MONGODB_AWS_SDK=$MONGODB_AWS_SDK" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
14+
echo "if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
15+
echo "npm run check:aws" >>$PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
3716

3817
# copy test file to AWS ecs test directory
3918
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -o xtrace # Write all commands first to stderr
3+
set -o errexit # Exit the script with error if any of the commands fail
4+
5+
export MONGODB_URI="$1"
6+
7+
tar -xzf src/src.tgz
8+
# produces src/ and drivers-tools/
9+
10+
cd src
11+
12+
source ./.evergreen/prepare-shell.sh # should not run git clone
13+
14+
# load node.js
15+
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
16+
17+
# run the tests
18+
npm install aws4

0 commit comments

Comments
 (0)