grafana/scripts/circle-test-frontend.sh
2019-02-13 11:38:04 +01:00

15 lines
267 B
Bash
Executable File

#!/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
}
exit_if_fail npm run prettier:check
exit_if_fail npm run test