grafana/scripts/circle-test-frontend.sh
2018-04-16 11:39:09 +02:00

14 lines
257 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 test
exit_if_fail npm run build