Files
openmaxio-object-browser/web-app/check-warnings-istanbul-coverage.sh

20 lines
294 B
Bash
Raw Normal View History

2023-04-25 10:19:00 -06:00
#!/bin/bash
yell() { echo "$0: $*" >&2; }
die() {
yell "$*"
cat yarn.log
exit 111
}
try() { "$@" &> yarn.log || die "cannot $*"; }
rm -f yarn.log
try yarn buildistanbulcoverage
2023-04-25 10:19:00 -06:00
if cat yarn.log | grep "Compiled with warnings"; then
echo "There are warnings in the code"
exit 1
fi