* 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.
9 lines
362 B
Bash
Executable file
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
|