-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a script for web_analysis for using from luci.
- Loading branch information
nturgut
committed
Jul 13, 2020
1 parent
dd0a6c4
commit 913d4a4
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# web_analysis: a command-line utility for running dart analyzer on Flutter Web | ||
# Engine. Used/Called by LUCI recipes: | ||
# | ||
# See: https://flutter.googlesource.com/recipes/+/refs/heads/master/recipes/web_engine.py#165 | ||
|
||
echo "Engine path $ENGINE_PATH" | ||
|
||
DART_SDK_DIR="${ENGINE_PATH}/src/out/host_debug_unopt/dart-sdk" | ||
PUB_PATH="$DART_SDK_DIR/bin/pub" | ||
DART_ANALYZER_PATH="$DART_SDK_DIR/bin/dartanalyzer" | ||
|
||
echo "Running \`pub get\` in 'engine/src/flutter/lib/web_ui'" | ||
(cd "$WEB_UI_DIR"; $PUB_PATH get) | ||
|
||
echo "Running \`dartanalyzer\` in 'engine/src/flutter/lib/web_ui'" | ||
(cd "$WEB_UI_DIR"; $DART_ANALYZER_PATH --enable-experiment=non-nullable --fatal-warnings --fatal-hints dev/ lib/ test/ tool/) |