Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance scripting. #204

Merged
merged 9 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions tool/analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,31 @@
# Fast fail the script on failures.
set -ex

sh ./tool/pub_get.sh
# The directory that this script is located in.
TOOL_DIR=`dirname "$0"`

cd examples/autosnapshotting
sh $TOOL_DIR/pub_get.sh

cd $TOOL_DIR/../examples/autosnapshotting
flutter analyze --fatal-infos
cd -

cd examples/leak_tracking
cd $TOOL_DIR/../examples/leak_tracking
flutter analyze --fatal-infos
cd -

cd pkgs/leak_tracker
cd $TOOL_DIR/../pkgs/leak_tracker
dart analyze --fatal-infos
cd -

cd pkgs/leak_tracker_flutter_testing
cd $TOOL_DIR/../pkgs/leak_tracker_flutter_testing
flutter analyze --fatal-infos
cd -

cd pkgs/leak_tracker_testing
cd $TOOL_DIR/../pkgs/leak_tracker_testing
dart analyze --fatal-infos
cd -

cd pkgs/memory_usage
cd $TOOL_DIR/../pkgs/memory_usage
dart analyze --fatal-infos
cd -
15 changes: 11 additions & 4 deletions tool/diagrams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@
# Fast fail the script on failures.
set -ex

sh ./tool/pub_get.sh
# The directory that this script is located in.
TOOL_DIR=`dirname "$0"`

cd pkgs/leak_tracker
sh $TOOL_DIR/pub_get.sh

cd $TOOL_DIR/../pkgs/leak_tracker
dart run layerlens
cd -

cd $TOOL_DIR/../pkgs/leak_tracker_testing
dart run layerlens
cd -

cd pkgs/leak_tracker_testing
cd $TOOL_DIR/../pkgs/leak_tracker_flutter_testing
dart run layerlens
cd -

cd pkgs/memory_usage
cd $TOOL_DIR/../pkgs/memory_usage
dart run layerlens
cd -
25 changes: 25 additions & 0 deletions tool/lt_publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Copyright 2023 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Runs `publish` for leak tracking packages in the repo in right order.

# Fast fail the script on failures.
set -ex

# The directory that this script is located in.
TOOL_DIR=`dirname "$0"`

cd $TOOL_DIR/../pkgs/leak_tracker
dart pub publish
cd -

cd $TOOL_DIR/../pkgs/leak_tracker_testing
dart pub publish
cd -

cd $TOOL_DIR/../pkgs/leak_tracker_flutter_testing
flutter pub publish
cd -
15 changes: 9 additions & 6 deletions tool/pub_get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,29 @@
# Fast fail the script on failures.
set -ex

cd examples/autosnapshotting
# The directory that this script is located in.
TOOL_DIR=`dirname "$0"`

cd $TOOL_DIR/../examples/autosnapshotting
flutter pub get
cd -

cd examples/leak_tracking
cd $TOOL_DIR/../examples/leak_tracking
flutter pub get
cd -

cd pkgs/leak_tracker
cd $TOOL_DIR/../pkgs/leak_tracker
dart pub get
cd -

cd pkgs/leak_tracker_flutter_testing
cd $TOOL_DIR/../pkgs/leak_tracker_flutter_testing
flutter pub get
cd -

cd pkgs/leak_tracker_testing
cd $TOOL_DIR/../pkgs/leak_tracker_testing
flutter pub get
cd -

cd pkgs/memory_usage
cd $TOOL_DIR/../pkgs/memory_usage
dart pub get
cd -