2017-10-23 09:06:08 +02:00
|
|
|
#!/bin/bash
|
2019-03-13 10:10:26 +01:00
|
|
|
|
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
|
|
|
|
2019-03-13 10:10:26 +01:00
|
|
|
start=$(date +%s)
|
|
|
|
|
|
2020-07-10 16:09:21 +02:00
|
|
|
export TEST_MAX_WORKERS=2
|
|
|
|
|
|
2020-09-21 17:04:58 +02:00
|
|
|
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" "$@"
|
2019-03-13 10:10:26 +01:00
|
|
|
|
|
|
|
|
end=$(date +%s)
|
|
|
|
|
seconds=$((end - start))
|
|
|
|
|
|
2019-03-29 15:32:58 +01:00
|
|
|
exit_if_fail ./scripts/ci-frontend-metrics.sh
|
|
|
|
|
|
2021-05-06 16:29:29 +02:00
|
|
|
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
|
|
|
|