Skip to content
Snippets Groups Projects
Commit ddca12a6 authored by Arie Peterson's avatar Arie Peterson
Browse files

Add tool to run cypress test in dev env

parent c3586b00
No related branches found
No related tags found
1 merge request!117Resolve "Add cypress scaffolding"
Pipeline #40187 passed with stages
in 4 minutes and 53 seconds
#!/bin/bash
# This is a tool to run the cypress test from a development environment. It is
# not used in the CI.
tag=138-add-cypress-scaffolding
host=https://dashboard.stackspin.net/
user="admin+cypress@stackspin.net"
password=$(pass stackspin/stackspin.net/cypress)
if [ $1 == "--local" ]
then
echo "Using locally built docker image."
image=dashboard-cypress
else
echo "Using docker image from gitlab registry."
image=open.greenhost.net:4567/stackspin/dashboard/cypress-test:$tag
fi
docker run -it --rm \
-e CYPRESS_BASE_URL="$host" \
-e CYPRESS_SSO_USER="$user" \
-e CYPRESS_SSO_PASSWORD="$password" \
$image
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment