2017-10-23 02:06:08 -05:00
|
|
|
#!/bin/bash
|
2019-03-13 04:10:26 -05:00
|
|
|
|
2019-07-23 05:12:33 -05:00
|
|
|
# shellcheck source=./scripts/helpers/exit-if-fail.sh
|
|
|
|
source "$(dirname "$0")/helpers/exit-if-fail.sh"
|
2017-10-23 02:06:08 -05:00
|
|
|
|
2019-03-13 04:10:26 -05:00
|
|
|
start=$(date +%s)
|
|
|
|
|
2020-03-25 06:19:21 -05: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 04:10:26 -05:00
|
|
|
|
|
|
|
end=$(date +%s)
|
|
|
|
seconds=$((end - start))
|
|
|
|
|
2019-03-29 09:32:58 -05:00
|
|
|
exit_if_fail ./scripts/ci-frontend-metrics.sh
|
|
|
|
|
2019-03-13 04:50:17 -05:00
|
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
|
|
exit_if_fail ./scripts/ci-metrics-publisher.sh grafana.ci-performance.frontend-tests=$seconds
|
|
|
|
fi
|
2019-03-12 09:08:46 -05:00
|
|
|
|