grafana/scripts/circle-test-frontend.sh
2018-09-18 12:18:35 +02:00

15 lines
258 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