File tree Expand file tree Collapse file tree 2 files changed +21
-24
lines changed
Expand file tree Collapse file tree 2 files changed +21
-24
lines changed Original file line number Diff line number Diff line change @@ -10,30 +10,9 @@ mkdir -p $ECS_SRC_DIR/.evergreen
1010set -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
3918cp $PROJECT_DIRECTORY /.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR /.evergreen/
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments