-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrun.sh
executable file
·48 lines (48 loc) · 941 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
echo "0. Unit Test"
echo "1. Debug with: environment is DEV"
echo "2. Debug with: environment is STAGING"
echo "3. Debug with: environment is PRODUCTION"
echo "4. Release with: environment is DEV"
echo "5. Release with: environment is STAGING"
echo "6. Release with: environment is PRODUCTION"
echo "7. Analyze"
while :
do
read -p "Run with: " input
case $input in
0)
flutter test -r expanded
break
;;
1)
flutter run --dart-define="lambiengcode=DEV"
break
;;
2)
flutter run --dart-define="lambiengcode=STAGING"
break
;;
3)
flutter run --dart-define="lambiengcode=PRODUCTION"
break
;;
4)
flutter run --dart-define="lambiengcode=DEV" --release
break
;;
5)
flutter run --dart-define="lambiengcode=STAGING" --release
break
;;
6)
flutter run --dart-define="lambiengcode=PRODUCTION" --release
break
;;
7)
flutter analyze
break
;;
*)
;;
esac
done