Skip to content

Commit

Permalink
Added a run_clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Oct 15, 2022
1 parent 8025372 commit 8b18f65
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
@@ -1,5 +1,9 @@
# Changelog

## 1.4.11+77 (15/10/2022)
- Nilou


## 1.4.9+75 (08/09/2022)
- 5 star Razor
- Phineas and Ferb sister
Expand Down
4 changes: 2 additions & 2 deletions run_build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

sh run_tests.sh --clean --pub_get --delete_conflicting_outputs

sh run_clean.sh
sh run_tests.sh
sh run_build_android.sh
sh run_build_windows.sh
14 changes: 14 additions & 0 deletions run_clean.sh
@@ -0,0 +1,14 @@
#!/bin/bash
set -e

echo 'Cleaning project...'
flutter clean

echo 'Retrieving packages...'
flutter pub get

echo 'Deleting conflicting outputs...'
flutter pub run build_runner clean
flutter pub run build_runner build --delete-conflicting-outputs

echo 'Clean completed'
26 changes: 0 additions & 26 deletions run_tests.sh
@@ -1,31 +1,5 @@
#!/bin/bash
set -e

while [[ "$#" -gt 0 ]]; do
case $1 in
--all) clean=1; pub_get=1; delete_conflicting_outputs=1; ;;
--clean) clean=1; ;;
--pub_get) pub_get=1; ;;
--delete_conflicting_outputs) delete_conflicting_outputs=1; ;;
*) echo "Unknown parameter passed: $1"; exit 1 ;;
esac
shift
done

if [ "$clean" = 1 ]; then
echo 'Cleaning project...'
flutter clean
fi

if [ "$pub_get" = 1 ]; then
echo 'Retrieving packages...'
flutter pub get
fi

if [ "$delete_conflicting_outputs" = 1 ]; then
echo 'Deleting conflicting outputs...'
flutter pub run build_runner build --delete-conflicting-outputs
fi

echo 'Running tests...'
flutter test

0 comments on commit 8b18f65

Please sign in to comment.