-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmelos.yaml
96 lines (78 loc) · 2.33 KB
/
melos.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: flutter_heinzelmen
packages:
- packages/**
scripts:
setup:
run: |
echo "no setup needed, skipping"
lint:all:
run: |
melos run lint:analyze && melos run lint:pub --no-select && melos run lint:format
lint:analyze:
run: |
melos exec -c 5 -- \
"dart analyze . --fatal-infos"
lint:pub:
run: |
melos exec -c 5 -- \
"flutter pub publish --dry-run"
packageFilters:
ignore: "*example*"
no-private: true
lint:format:
run: |
melos exec -c 1 -- \
"dart format . --set-exit-if-changed"
test:all:
run: melos run test --no-select
test:
run: |
melos exec -c 1 -- \
flutter test --no-pub
packageFilters:
dirExists:
- test
ignore:
- "*example*"
test:coverage:all:
run: melos run test:coverage --no-select
test:goldens:
run: |
melos exec -c 1 -- \
"mkdir -p test_results && flutter test --no-pub"
packageFilters:
dirExists:
- test/goldenFiles
test:coverage:
run: |
melos exec -c 1 -- \
"mkdir -p coverage && flutter test --coverage"
packageFilters:
dirExists:
- test
ignore:
- "*example*"
- "*web*"
- "*_theme*"
build:android:
run: |
melos run build:example_android_pub --no-select && melos bootstrap
# melos bootstrap does not generate all files generated by a build that runs
# `pub get`, and `flutter drive` does not either, so it is still necessary to
# build sometimes without the `--no-pub` switch. Careful: `melos bootstrap` after.
build:example_android_pub:
run: |
melos exec -c 6 --dir-exists="android" --scope="*example" --fail-fast -- \
"flutter build apk"
description: Build a specific example app for Android.
build:ios:
run: |
melos run build:example_ios_pub --no-select && melos bootstrap
# melos bootstrap does not generate all files generated by a build that runs
# `pub get`, and `flutter drive` does not either, so it is still necessary to
# build sometimes without the `--no-pub` switch. Careful: `melos bootstrap` after.
build:example_ios_pub:
run: |
melos exec -c 6 --dir-exists="ios" --scope="*example" --fail-fast -- \
"flutter build ios --no-codesign"
description: Build a specific example app for iOS.