diff --git a/pr_check.sh b/pr_check.sh index 347763aeea..7cf0cbef68 100755 --- a/pr_check.sh +++ b/pr_check.sh @@ -15,19 +15,17 @@ COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-fronten # Build and Publish to Quay # --------------------------- -set -ex - -#docker run -t \ -# -v $PWD:/e2e:ro,Z \ -# -w /e2e \ -# -e CHROME_ACCOUNT=$CHROME_ACCOUNT \ -# -e CHROME_PASSWORD=$CHROME_PASSWORD \ -# --add-host stage.foo.redhat.com:127.0.0.1 \ -# --add-host prod.foo.redhat.com:127.0.0.1 \ -# --entrypoint bash \ -# quay.io/cloudservices/cypress-e2e-image:06b70f3 /e2e/run-e2e.sh - -#echo "After docker run" +set -x + +docker run -t \ + -v $PWD:/e2e:ro,Z \ + -w /e2e \ + -e CHROME_ACCOUNT=$CHROME_ACCOUNT \ + -e CHROME_PASSWORD=$CHROME_PASSWORD \ + --add-host stage.foo.redhat.com:127.0.0.1 \ + --add-host prod.foo.redhat.com:127.0.0.1 \ + --entrypoint bash \ + quay.io/cloudservices/cypress-e2e-image:06b70f3 /e2e/run-e2e.sh # source is preferred to | bash -s in this case to avoid a subshell source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh) @@ -53,7 +51,7 @@ SHORT_SHA=$(git rev-parse --short HEAD) IMAGE_TAG="pr-${ghprbPullId}-${SHORT_SHA}" echo "Expecting image tag ${IMAGE_TAG}" -set -ex +set -x # Deploy to an ephemeral namespace for testing # We deploy rbac and override the image tag for insights-frontend-chrome export IMAGE="quay.io/cloudservices/insights-chrome-frontend"