Skip to content

Commit

Permalink
update e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: atlantisbot <[email protected]>
  • Loading branch information
atlantisbot committed May 10, 2024
1 parent c6fb826 commit 6acef01
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/e2e-deps.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/usr/bin/env bash
# requires the following environment variables:
# - CIRCLE_WORKING_DIRECTORY
# - TERRAFORM_VERSION
# - CIRCLE_GO_BIN
# - GITHUB_USERNAME
# - NGROK_AUTH_TOKEN

# Exit immediately if a command returns a non-zero code
set -e

if [ -z "${CIRCLE_GO_BIN}" ]; then
CIRCLE_GO_BIN="/home/circleci/go/bin"
fi

echo "Preparing to run e2e tests"
if [ ! -f atlantis ]; then
echo "atlantis binary not found. exiting...."
Expand All @@ -16,7 +26,7 @@ cd e2e/
curl -LOk https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip
chmod +x terraform
cp terraform /home/circleci/go/bin
cp terraform ${CIRCLE_GO_BIN}
# Download ngrok to create a tunnel to expose atlantis server
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v2-stable-linux-amd64.zip -O ngrok-stable-linux-amd64.zip
unzip ngrok-stable-linux-amd64.zip
Expand Down

0 comments on commit 6acef01

Please sign in to comment.