Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .evergreen/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ cp ${PROJECT_DIRECTORY}/test/certificates/* ${DRIVERS_TOOLS}/.evergreen/x509gen/
# Replace MongoOrchestration's client certificate.
cp ${PROJECT_DIRECTORY}/test/certificates/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem

# Ensure hatch is installed.
bash ${PROJECT_DIRECTORY}/.evergreen/scripts/ensure-hatch.sh

if [ -w /etc/hosts ]; then
SUDO=""
else
Expand Down
4 changes: 4 additions & 0 deletions .evergreen/scripts/ensure-hatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -eu

HERE=$(dirname ${BASH_SOURCE:-$0})
pushd "$(dirname "$(dirname $HERE)")" > /dev/null

# Ensure hatch is available.
if [ ! -x "$(command -v hatch)" ]; then
# Install a virtual env with "hatch"
Expand Down Expand Up @@ -53,3 +56,4 @@ if [ ! -x "$(command -v hatch)" ]; then
echo "Installing hatch... done."
fi
hatch --version
popd > /dev/null
6 changes: 4 additions & 2 deletions .evergreen/setup-spawn-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ if [ -z "$1" ]
fi

target=$1
remote_dir=/home/ec2-user/mongo-python-driver

echo "Copying files to $target..."
rsync -az -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/ec2-user/mongo-python-driver
rsync -az -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:$remote_dir
echo "Copying files to $target... done"

ssh $target /home/ec2-user/mongo-python-driver/.evergreen/scripts/setup-system.sh
ssh $target $remote_dir/.evergreen/scripts/setup-system.sh
ssh $target "PYTHON_BINARY=${PYTHON_BINARY:-} $remote_dir/.evergreen/scripts/ensure-hatch.sh"
Loading