Files
atlantis/scripts/e2e-deps.sh
nitrocode f5c781400d fix(tests): Pin ngrok to v2 and use https (#3429)
* fix(tests): Pin ngrok to v2 and use https
2023-05-22 11:11:19 -04:00

28 lines
908 B
Bash
Executable File

#!/usr/bin/env bash
# Exit immediately if a command returns a non-zero code
set -e
echo "Preparing to run e2e tests"
if [ ! -f atlantis ]; then
echo "atlantis binary not found. exiting...."
exit 1
fi
cp atlantis ${CIRCLE_WORKING_DIRECTORY}/e2e/
# cd into e2e folder
cd e2e/
# Download terraform
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
# 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
chmod +x ngrok
wget https://stedolan.github.io/jq/download/linux64/jq
chmod +x jq
# Copy github config file - replace with circleci user later
cp .gitconfig ~/.gitconfig