fix(ddc): type fixes necessary to bring DDC severe count to 0

This commit is contained in:
Yegor Jbanov
2016-01-21 18:13:58 -08:00
committed by Yegor
parent 9c96b8affc
commit 4282297c24
13 changed files with 82 additions and 59 deletions

View File

@ -60,3 +60,18 @@ then
else
echo "Warning count ok"
fi
function countWarnings {
local GREP_PATTERN=$1
local COUNT=`cat $LOG_FILE | grep -E '$GREP_PATTERN' | wc -l | sed -e 's/^[[:space:]]*//'`
echo $COUNT
}
SEVERE_ANGULAR_COUNT=$(countWarnings '^severe.*package:angular2')
if [[ "$SEVERE_ANGULAR_COUNT" -gt "0" ]]
then
echo "Found severe errors in angular2 package"
exit 1
fi
echo 'Dart DDC build finished'