Repository navigation
Expand file tree
/
Copy pathpubspec.yaml
More file actions
123 lines (122 loc) · 4.28 KB
/
Copy pathpubspec.yaml
File metadata and controls
123 lines (122 loc) · 4.28 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: manytype_workspace
publish_to: none
environment:
sdk: ">=3.5.3 <4.0.0"
workspace:
- packages/manytype_protocol
- packages/manytype_core
- packages/anytype
- packages/anytype_flutter
- packages/anytype_flutter/example
- packages/manytype_cli
- apps/ManyType
dev_dependencies:
melos: ^7.5.0
# The ManyType app (apps/ManyType) builds on the manyui library, pinned to a
# ManyUI commit from its public git mirror. manyui is not yet published, so
# manyui_hooks and manyui_riverpod's hosted `manyui` constraint is overridden
# to the same pinned commit. Keep this ref in sync with apps/ManyType.
#
# To develop against a local ManyUI checkout at ../ManyUI, create an
# untracked pubspec_overrides.yaml here (it replaces this whole block):
#
# dependency_overrides:
# manyui:
# path: ../ManyUI/manyui
# manyui_hooks:
# path: ../ManyUI/manyui_hooks
# manyui_riverpod:
# path: ../ManyUI/manyui_riverpod
dependency_overrides:
manyui:
git:
url: https://github.com/ManyMath/ManyUI.git
ref: d5b8881a8a582ef0f6f5989addd6ab1fd4ef144c
path: manyui
melos:
name: manytype
sdkPath: auto
command:
bootstrap:
runPubGetInParallel: true
scripts:
test:
run: dart test
exec:
concurrency: 1
packageFilters:
dirExists: test
ignore:
- manytype
- anytype_flutter
test:web:
run: |
if [ -f tool/fetch_web_test_assets.dart ]; then
dart run tool/fetch_web_test_assets.dart
fi
dart test -p chrome -j 1
description: Fetch web test assets (if any) and run the chrome test suite for every package with tests.
exec:
concurrency: 1
packageFilters:
dirExists: test
ignore:
- manytype
- anytype_flutter
- manytype_cli
test:ci:
run: dart test --exclude-tags=round_trip -j 1
description: |
Run the VM test suite excluding tests tagged `round_trip` (docker
any-sync oracle / live manytype_server integration tests). Every
other VM test either has no live-infra dependency or self-skips via
an env-var gate (MANYTYPE_LIVE_SERVER_TESTS, MANYTYPE_RUN_PHASE*)
when its prerequisites aren't set up, so this target is safe to run
in a bare CI runner with no docker/server/FFI setup. `-j 1` is
required: some harness tests (phase38/phase39) build and start a
real manytype_server themselves and race on port allocation under
concurrent test-file execution (`-j 4` reproduced intermittent
"Address already in use" failures; `-j 1` did not).
The Flutter product package is intentionally excluded here because
its `dart:ui` tests run with `flutter test` in product-web.yml.
exec:
concurrency: 1
packageFilters:
dirExists: test
ignore:
- manytype
- anytype_flutter
test:oracle:
run: dart test --tags=round_trip -j 1
description: |
Run only the `round_trip`-tagged VM tests (docker any-sync oracle /
live manytype_server integration tests). Requires the self-hosted
oracle stack to be up (`docker/any-sync`: `make start`), the release
FFI library built (`cargo build -p manytype_quic_ffi --release`),
and `LD_LIBRARY_PATH` including `rust/target/release`. See
`.github/workflows/oracle-tests.yml`. Scoped to `anytype`: it's
the only package with any `round_trip`-tagged tests, and `dart test
--tags=` errors out (exit 79) in packages with zero matches.
exec:
concurrency: 1
packageFilters:
scope: anytype
analyze:
run: dart analyze .
exec:
concurrency: 1
format-check:
# Vendored cargokit keeps its pinned upstream bytes, so a package that
# vendors it is checked only in its own Dart sources.
run: |
if [ -d cargokit ]; then
dart format --output=none --set-exit-if-changed lib test example/lib
else
dart format --output=none --set-exit-if-changed .
fi
description: Fail if any file isn't formatted per `dart format`.
exec:
concurrency: 1
codegen:
run: python3 scripts/generate_protocol.py
description: Generate Dart and Rust protobuf types from proto/