From e4f1f5d08b58b2a1f80567625d246d80ad779dd9 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 19 Dec 2017 16:14:59 +0100 Subject: [PATCH] Allow disabling e2e in ci --- scripts/e2e-ci.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/e2e-ci.sh b/scripts/e2e-ci.sh index 64f749196..c9ee437e8 100755 --- a/scripts/e2e-ci.sh +++ b/scripts/e2e-ci.sh @@ -2,6 +2,7 @@ REPORTS_FOLDER=${CIRCLE_TEST_REPORTS:-./test/e2e/reports} CIRCLE_BRANCH=${CIRCLE_BRANCH:-master} +E2E_DISABLE=${E2E_DISABLE:-false} # Amount of retries before failure. E2E_MAX_RETRIES=${E2E_MAX_RETRIES:-1} @@ -14,6 +15,12 @@ E2E_WAIT_FOR_TIMEOUT=${E2E_WAIT_FOR_TIMEOUT:-5000} E2E_BROWSERS=${E2E_BROWSERS:-chrome,firefox,edge} #ie safari + +if [[ "${E2E_DISABLE}" == "true" ]]; then + echo E2E is disabled. + exit +fi + if [[ "${CIRCLE_BRANCH}" == "master" && -n "$BROWSERSTACK_KEY" ]]; then echo Testing on browserstack yarn e2e --reports-folder "$REPORTS_FOLDER" --bs-key "$BROWSERSTACK_KEY" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS"