Files
sdk/tools/bots/flutter/analyze_flutter_engine.sh
T
Devon Carew 1c21a7ff93 Analyze the Dart code in flutter/engine as part of the flutter-analyze bot.
Change-Id: I4aac6b1a018332fa2d4ed39c8b953b0e98a1b4c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159761
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-08-25 15:21:30 +00:00

31 lines
711 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# Analyze Dart code in the flutter/engine repo.
set -e
checkout=$(pwd)
dart=$checkout/out/ReleaseX64/dart-sdk/bin/dart
sdk=$checkout/out/ReleaseX64/dart-sdk
tmpdir=$(mktemp -d)
cleanup() {
rm -rf "$tmpdir"
}
trap cleanup EXIT HUP INT QUIT TERM PIPE
cd "$tmpdir"
git clone --single-branch -vv \
https://dart.googlesource.com/external/github.com/flutter/engine
cd engine
# analyze lib/web_ui
echo Analyzing lib/web_ui...
pushd lib/web_ui
$dart pub get
$dart analyze
popd