Skip to content

Commit

Permalink
add script to run builder for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz committed Nov 19, 2024
1 parent b417e98 commit 1ead661
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/run-builder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/..

for pkg in {dart,drift,flutter,hive,isar,sqflite,}; do
# Navigate into package
cd $pkg
flutter clean
flutter pub get
## Run build_runner
flutter pub run build_runner build --delete-conflicting-outputs
## Run tests
flutter test
cd ..
done

0 comments on commit 1ead661

Please sign in to comment.