grafana/scripts/circle-test-frontend.sh

15 lines
267 B
Bash
Raw Normal View History

2017-10-23 02:06:08 -05:00
#!/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
}
2019-02-13 04:38:04 -06:00
exit_if_fail npm run prettier:check
2018-09-18 03:47:01 -05:00
exit_if_fail npm run test