mirror of
https://github.com/hanzoai/team.git
synced 2026-11-01 07:55:31 +00:00
* Move license setting from env var to mmctl upload * Extract common E2E steps * Add E2E fulltests * Fix plugin_startup_fail_spec.js, timeout runners, fix local dashboard run * Implement reporting script and job * Bump artifact related actions * Fix E2E variable generator script * Skip reporting steps if not required * Get rid of deprecation warnings * Fix inbucket hostname parameter * Support arbitrary refs in test template * Fix cycle BRANCH var for non-PR commits --------- Co-authored-by: Mattermost Build <[email protected]>
24 lines
604 B
Bash
24 lines
604 B
Bash
#!/bin/bash
|
|
set -e -u -o pipefail
|
|
cd "$(dirname "$0")"
|
|
. .e2erc
|
|
|
|
mme2e_log "Loading variables from .env.cypress"
|
|
if ! [ -f .env.cypress ]; then
|
|
mme2e_log "Error: .env.cypress is required to exist, for the test cycle to be generated. Aborting." >&2
|
|
exit 1
|
|
fi
|
|
set -a
|
|
. .env.cypress
|
|
|
|
if [ -z "${AUTOMATION_DASHBOARD_URL:-}" ]; then
|
|
mme2e_log "AUTOMATION_DASHBOARD_URL is unset. Skipping test cycle generation."
|
|
exit 0
|
|
fi
|
|
|
|
mme2e_log "Generating the test cycle on the Automation Dashboard"
|
|
cd ../cypress
|
|
npm i
|
|
# shellcheck disable=SC2086
|
|
exec node --trace-warnings generate_test_cycle.js $TEST_FILTER
|