-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathvalidate.sh
More file actions
executable file
·27 lines (23 loc) · 865 Bytes
/
validate.sh
File metadata and controls
executable file
·27 lines (23 loc) · 865 Bytes
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
#!/bin/bash
set -e -x # exit on first error
###############################################################################
# VERIFICATION FUNCTION FOR FLUTTER APP/PACKAGES
###############################################################################
verifyFlutter () {
cd $1
echo "Checking `pwd`"
flutter --version
flutter clean
flutter pub get
sh ./scripts/format.sh --set-exit-if-changed
flutter analyze --no-pub .
###############################################################################
# CODE COVERAGE
###############################################################################
rm -rf coverage
flutter test
}
###############################################################################
# INVOKE VERIFICATION FUNCTIONS
###############################################################################
verifyFlutter "."