2017-10-23 15:06:08 +08:00
|
|
|
#!/bin/bash
|
2019-03-13 17:10:26 +08:00
|
|
|
|
2019-07-23 18:12:33 +08:00
|
|
|
# shellcheck source=./scripts/helpers/exit-if-fail.sh
|
|
|
|
source "$(dirname "$0")/helpers/exit-if-fail.sh"
|
2017-10-23 15:06:08 +08:00
|
|
|
|
2019-03-13 17:10:26 +08:00
|
|
|
start=$(date +%s)
|
|
|
|
|
2020-03-25 19:19:21 +08:00
|
|
|
exit_if_fail yarn run prettier:check
|
|
|
|
exit_if_fail yarn run packages:typecheck
|
|
|
|
exit_if_fail yarn run typecheck
|
|
|
|
exit_if_fail yarn run test
|
2019-03-13 17:10:26 +08:00
|
|
|
|
|
|
|
end=$(date +%s)
|
|
|
|
seconds=$((end - start))
|
|
|
|
|
2019-03-29 22:32:58 +08:00
|
|
|
exit_if_fail ./scripts/ci-frontend-metrics.sh
|
|
|
|
|
2019-03-13 17:50:17 +08:00
|
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
|
|
exit_if_fail ./scripts/ci-metrics-publisher.sh grafana.ci-performance.frontend-tests=$seconds
|
|
|
|
fi
|
2019-03-12 22:08:46 +08:00
|
|
|
|