https://github.com/grafana/grafana
Raw File
Tip revision: d42f903b83d82b8f38e0499a333e15a23a6023a9 authored by Alexander Zobnin on 30 May 2019, 14:55:19 UTC
Chore: add BatchDisableUsers() to the bus
Tip revision: d42f903
circle-test-frontend.sh
#!/bin/bash

function exit_if_fail {
    command=$@
    echo "Executing '$command'"
    eval $command
    rc=$?
    if [ $rc -ne 0 ]; then
        echo "'$command' returned $rc."
        exit $rc
    fi
}

start=$(date +%s)

exit_if_fail npm run prettier:check
exit_if_fail npm run test

end=$(date +%s)
seconds=$((end - start))

exit_if_fail ./scripts/ci-frontend-metrics.sh

if [ "${CIRCLE_BRANCH}" == "master" ]; then
	exit_if_fail ./scripts/ci-metrics-publisher.sh grafana.ci-performance.frontend-tests=$seconds
fi

back to top