-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add script for running unittests on local
- Loading branch information
Showing
1 changed file
with
24 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,24 @@ | ||
#!/bin/bash | ||
|
||
#dart pub global activate fvm | ||
#export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
fvm use 3.24.5 | ||
|
||
fvm flutter clean | ||
fvm flutter pub get | ||
|
||
fvm dart run build_runner build --delete-conflicting-outputs | ||
fvm dart run intl_utils:generate | ||
|
||
# when flutter analyze issue found then exit | ||
fvm flutter analyze | ||
if [ $? -ne 0 ]; then | ||
echo "Flutter analyze found issues. Exiting." | ||
exit 1 | ||
fi | ||
|
||
fvm flutter test --coverage | ||
if [ $? -ne 0 ]; then | ||
echo "Flutter test found issues. Exiting." | ||
exit 1 | ||
fi |