docbrown/bin/e2e
Nick Taylor ccb8352841
Fix end to end testing for Forem forked repositories (#11950)
* Fixed e2e parallelization when no API token for Knapsack.

* Re-eneabled e2e tests in Travis.

* Checks for the KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS now.
2020-12-17 18:38:17 -05:00

9 lines
362 B
Bash
Executable file

#!/bin/bash
if [ "$KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS" = "" ]; then
KNAPSACK_PRO_ENDPOINT=https://api-disabled-for-fork.knapsackpro.com \
KNAPSACK_PRO_MAX_REQUEST_RETRIES=0 \
KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS=disabled-for-fork \
npx cypress run # run without parallelization
else
npx knapsack-pro-cypress # parallelization is available
fi