You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
for dir in src/tests/site/code/ src/tests/site/articles/*/*/bin/ src/tests/site/articles/*/ src/site/tools/*/code/ src/site/articles/*/code/ src/site/polymer/code/
do
# Run pub if there is a pubspec in this code directory.
if [ -a "$dir/pubspec.yaml" ]; then
pub_result=`pushd $dir && pub get && popd`
cmd="$ANA --package-root $dir/packages"
else
cmd="$ANA"
fi
# Loop through each Dart file in this code directory.
files="$dir*.dart"
for file in $files
do
echo ""
results=`$cmd $file 2>&1`
exit_code=$?
if [ $exit_code -eq 2 ]; then
let FAILURES++
EXITSTATUS=1
echo "$results"
echo "$file: FAILURE."
elif [ $exit_code -eq 1 ]; then
let WARNINGS++
echo "$results"
echo "$file: WARNING."
elif [ $exit_code -eq 0 ]; then
let PASSING++
echo "$results"
echo "$file: Passed analysis."
else
echo "$file: Unknown exit code: $exit_code."
fi
# Remove the output directory so that subsequent test runs will still see