forked from Superformula/mobile-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add makefile to automate routine
- Loading branch information
Showing
1 changed file
with
32 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,32 @@ | ||
PACKAGES := $(wildcard packages/*) | ||
FEATURES := $(wildcard lib/) | ||
|
||
get: | ||
flutter pub get | ||
for feature in $(FEATURES); do \ | ||
cd $${feature} ; \ | ||
echo "Updating dependencies on $${feature}" ; \ | ||
flutter pub get ; \ | ||
cd ../../../ ; \ | ||
done | ||
for package in $(PACKAGES); do \ | ||
cd $${package} ; \ | ||
echo "Updating dependencies on $${package}" ; \ | ||
flutter pub get ; \ | ||
cd ../../ ; \ | ||
done | ||
|
||
testing: | ||
flutter test | ||
for feature in $(FEATURES); do \ | ||
cd $${feature} ; \ | ||
echo "Running test on $${feature}" ; \ | ||
flutter test ; \ | ||
cd ../../../ ; \ | ||
done | ||
for package in $(PACKAGES); do \ | ||
cd $${package} ; \ | ||
echo "Running test on $${package}" ; \ | ||
flutter test ; \ | ||
cd ../../ ; \ | ||
done |