Files
atlantis/scripts/e2e-deps.sh
nitrocode 6f7ee2ef39 Bump to atlantis-base:2022.11.13 and use cimg/go:1.19 (#2673)
* Bump to atlantis-base:2022.11.13

* Use cimg/go back image

* Use correct path of cimg/go binary dir

* e2e: use /usr/bin

* e2e: add set -e

* circleci: use testing-env:2022.11.13

* e2e: use /home/circleci/go/bin

* e2e: revert to testing-env:2021.08.31 image
2022-11-13 14:51:18 -06:00

28 lines
872 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/4VmDzA7iaHb/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