forked from fluttercandies/flutter_image_editor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunnable.sh
executable file
·41 lines (31 loc) · 837 Bytes
/
runnable.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
export WORK_DIR=$PWD
echo "Set the work to ${WORK_DIR}"
# Get the binary library
dart pub global activate dartdoc
check_code(){
cd "$WORK_DIR/$1"
# Check code
echo "Run flutter pub get in $PWD"
flutter pub get
# Analyse code
echo "Analyse code in $PWD"
flutter analyze lib
# Generate docs
echo "Generate docs in $PWD"
dart pub global run dartdoc
# Analyze if the "example" folder exists.
if [ -d "example" ]; then
echo "Analyse example code in $PWD"
cd example
flutter pub get
flutter analyze lib
fi
# Run tests if the "test" folder exists.
if [ -d "test" ]; then
echo "Running tests in $PWD"
flutter test
fi
}
check_code "image_editor"
check_code "image_editor_common"
check_code "image_editor_platform_interface"