-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
59 lines (55 loc) · 2.15 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
name: easydev_mobile
packages:
- packages/**
scripts:
analyze:
run: melos exec --fail-fast -- "flutter analyze . --no-fatal-infos"
description: Run static analysis on all packages
format:
run: melos exec --fail-fast -- "flutter format --set-exit-if-changed . -l 100"
description: Run Flutter format on all packages
format:all:
run: melos exec --fail-fast -- "flutter format . -l 100"
description: Run Flutter format on all packages
test:
run: melos exec -c 1 -- "flutter test --no-pub"
description: Run tests on packages with Flutter
select-package:
dir-exists: test
ignore:
- "*packages.easydev_base_ui.example*"
test:coverage:
run: melos exec -c 1 -- "flutter test --coverage"
select-package:
dir-exists: test
ignore:
- "*packages.easydev_base_ui.example*"
test:coverage:concurrency:
run: melos exec -c 5 -- "flutter test --coverage"
select-package:
dir-exists: test
ignore:
- "*packages.easydev_base_ui.example*"
test:html:
run: melos exec -c 1 --fail-fast -- "genhtml coverage_report/lcov.info --output=coverage"
description: Generate line coverage report from lcov.info.
select-package:
dir-exists: coverage_report
ignore:
- "*packages.easydev_base_ui.example*"
test:all:
run: melos run test --no-select
test:all:coverage:
run: |
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --create" && \
melos run test:coverage --no-select && \
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --combine" && \
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --clean" && \
melos run test:html
test:all:coverage:concurrency:
run: |
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --create" && \
melos run test:coverage:concurrency --no-select && \
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --combine" && \
melos exec -- "sh \$MELOS_ROOT_PATH/coverage_helper.sh \$MELOS_PACKAGE_NAME --clean" && \
melos run test:html