Files
grafana/scripts/circle-test-frontend.sh
T

21 lines
469 B
Bash
Raw Normal View History

2017-10-23 09:06:08 +02:00
#!/bin/bash
2019-07-23 13:12:33 +03:00
# shellcheck source=./scripts/helpers/exit-if-fail.sh
source "$(dirname "$0")/helpers/exit-if-fail.sh"
2017-10-23 09:06:08 +02:00
start=$(date +%s)
2020-07-10 16:09:21 +02:00
export TEST_MAX_WORKERS=2
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" "$@"
end=$(date +%s)
seconds=$((end - start))
exit_if_fail ./scripts/ci-frontend-metrics.sh
if [ "${CIRCLE_BRANCH}" == "main" ]; then
2019-03-13 10:50:17 +01:00
exit_if_fail ./scripts/ci-metrics-publisher.sh grafana.ci-performance.frontend-tests=$seconds
fi
2019-03-12 15:08:46 +01:00