File tree Expand file tree Collapse file tree 2 files changed +24
-21
lines changed
Expand file tree Collapse file tree 2 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,30 @@ mkdir -p $ECS_SRC_DIR/.evergreen
1010set -ex
1111
1212# write test file
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
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
1637
1738# copy test file to AWS ecs test directory
1839cp $PROJECT_DIRECTORY /.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR /.evergreen/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments