Commit 918740d 1 parent bdaf43c commit 918740d Copy full SHA for 918740d
File tree 6 files changed +56
-8
lines changed
6 files changed +56
-8
lines changed Original file line number Diff line number Diff line change 1
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
2
+ set -eu
4
3
5
4
# Copy PyMongo's test certificates over driver-evergreen-tools'
6
5
cp ${PROJECT_DIRECTORY} /test/certificates/* ${DRIVERS_TOOLS} /.evergreen/x509gen/
@@ -9,7 +8,7 @@ cp ${PROJECT_DIRECTORY}/test/certificates/* ${DRIVERS_TOOLS}/.evergreen/x509gen/
9
8
cp ${PROJECT_DIRECTORY} /test/certificates/client.pem ${MONGO_ORCHESTRATION_HOME} /lib/client.pem
10
9
11
10
# Ensure hatch is installed.
12
- bash ${PROJECT_DIRECTORY} /scripts/ensure-hatch.sh
11
+ bash ${PROJECT_DIRECTORY} /.evergreen/ scripts/ensure-hatch.sh
13
12
14
13
if [ -w /etc/hosts ]; then
15
14
SUDO=" "
Original file line number Diff line number Diff line change 1
- #! /bin/bash -eux
1
+ #! /bin/bash
2
+
3
+ set -eu
2
4
3
5
# Get the current unique version of this checkout
4
6
# shellcheck disable=SC2154
5
- if [ " $is_patch " = " true" ]; then
7
+ if [ " ${ is_patch:- } " = " true" ]; then
6
8
# shellcheck disable=SC2154
7
9
CURRENT_VERSION=" $( git describe) -patch-$version_id "
8
10
else
@@ -14,7 +16,7 @@ DRIVERS_TOOLS="$(dirname $PROJECT_DIRECTORY)/drivers-tools"
14
16
CARGO_HOME=${CARGO_HOME:- ${DRIVERS_TOOLS} / .cargo}
15
17
16
18
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
17
- if [ " Windows_NT" = " $OS " ]; then # Magic variable in cygwin
19
+ if [ " Windows_NT" = " ${OS :- } " ]; then # Magic variable in cygwin
18
20
DRIVERS_TOOLS=$( cygpath -m $DRIVERS_TOOLS )
19
21
PROJECT_DIRECTORY=$( cygpath -m $PROJECT_DIRECTORY )
20
22
CARGO_HOME=$( cygpath -m $CARGO_HOME )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -eu
3
+
4
+ HERE=$( dirname ${BASH_SOURCE:- $0 } )
5
+ pushd $HERE
6
+ . env.sh
2
7
3
- . src/.evergreen/scripts/env.sh
4
- set -o xtrace
5
8
rm -rf $DRIVERS_TOOLS
6
9
if [ " $PROJECT " = " drivers-tools" ]; then
7
10
# If this was a patch build, doing a fresh clone would not actually test the patch
10
13
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
11
14
fi
12
15
echo " { \" releases\" : { \" default\" : \" $MONGODB_BINARIES \" }}" > $MONGO_ORCHESTRATION_HOME /orchestration.config
16
+
17
+ popd
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eu
4
+
5
+ HERE=$( dirname ${BASH_SOURCE:- $0 } )
6
+ pushd $( dirname $( dirname $HERE ) )
7
+ echo " Setting up system..."
8
+ bash .evergreen/scripts/configure-env.sh
9
+ source .evergreen/scripts/env.sh
10
+ bash .evergreen/scripts/prepare-resources.sh
11
+ bash $DRIVERS_TOOLS /.evergreen/setup.sh
12
+ bash .evergreen/scripts/install-dependencies.sh
13
+ popd
14
+ echo " Setting up system... done."
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eu
4
+
5
+ if [ -z " $1 " ]
6
+ then
7
+ echo " Must supply a spawn host URL!"
8
+ fi
9
+
10
+ target=$1
11
+
12
+ echo " Copying files to $target ..."
13
+ rsync -az -e ssh --exclude ' .git' --filter=' :- .gitignore' -r . $target :/home/ec2-user/mongo-python-driver
14
+ echo " Copying files to $target ... done"
15
+
16
+ ssh $target /home/ec2-user/mongo-python-driver/.evergreen/scripts/setup-system.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -z " $1 " ]
4
+ then
5
+ echo " Must supply a spawn host URL!"
6
+ fi
7
+
8
+ target=$1
9
+
10
+ echo " Syncing files to $target ..."
11
+ fswatch -o . | while read f; do rsync -hazv -e ssh --exclude ' .git' --filter=' :- .gitignore' -r . $target :/home/ec2-user/mongo-python-driver; done
12
+ echo " Syncing files to $target ... done."
You can’t perform that action at this time.
0 commit comments