diff --git a/.circleci/config.yml b/.circleci/config.yml index 8046339a..150b4263 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,12 +21,12 @@ jobs: command: cd "${CIRCLE_WORKING_DIRECTORY}/e2e" && ./atlantis server --gh-user="$GITHUB_USERNAME" --gh-token="$GITHUB_PASSWORD" --data-dir="/tmp" --log-level="debug" &> /tmp/atlantis-server.log background: true - run: sleep 2 - - run: + - run: name: Starting ngrok command: cd "${CIRCLE_WORKING_DIRECTORY}/e2e" && ./ngrok http 4141 > /tmp/ngrok.log background: true - run: sleep 2 - - run: echo 'export ATLANTIS_URL=$(curl -s 'http://localhost:4040/api/tunnels' | jq -r '.tunnels[1].public_url')' >> $BASH_ENV + - run: echo "export ATLANTIS_URL=$(curl -s 'http://localhost:4040/api/tunnels' | jq -r '.tunnels[] | select(.proto=="http") | .public_url')" >> $BASH_ENV - run: name: Run e2e tests command: make end-to-end-tests @@ -53,4 +53,4 @@ jobs: docker tag hootsuite/atlantis:latest hootsuite/atlantis:$TAG docker push hootsuite/atlantis:$TAG done - fi \ No newline at end of file + fi