mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Migrating web_analysis from Cirrus to LUCI (PART 1) (flutter/engine#19726)
* adding a script for web_analysis for using from luci. * addressing reviewer comments
This commit is contained in:
parent
23e208171f
commit
d831e5aa86
20
engine/src/flutter/lib/web_ui/dev/web_engine_analysis.sh
Executable file
20
engine/src/flutter/lib/web_ui/dev/web_engine_analysis.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# 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
|
||||
|
||||
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/)
|
||||
Loading…
x
Reference in New Issue
Block a user