...
1#!/bin/bash
2#
3set -o errexit # Exit the script with error if any of the commands fail.
4
5source ${DRIVERS_TOOLS}/.evergreen/atlas/secrets-export.sh
6
7VARLIST=(
8 AWS_REGION
9 DRIVERS_TOOLS
10 DRIVERS_ATLAS_PUBLIC_API_KEY
11 DRIVERS_ATLAS_PRIVATE_API_KEY
12 DRIVERS_ATLAS_LAMBDA_USER
13 DRIVERS_ATLAS_LAMBDA_PASSWORD
14 DRIVERS_ATLAS_GROUP_ID
15 LAMBDA_STACK_NAME
16 PROJECT_DIRECTORY
17 TEST_LAMBDA_DIRECTORY
18)
19
20# Ensure that all variables required to run the test are set, otherwise throw
21# an error.
22for VARNAME in ${VARLIST[*]}; do
23 [[ -z "${!VARNAME}" ]] && echo "ERROR: $VARNAME not set" && exit 1;
24done
25
26echo "Starting deployment"
27. ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
View as plain text