grafana/scripts/circle-test-frontend.sh

14 lines
257 B
Bash
Raw Normal View History

2017-10-23 15:06:08 +08: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
}
2018-04-16 15:57:41 +08:00
exit_if_fail npm run test
exit_if_fail npm run build