-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevbox.json
More file actions
205 lines (205 loc) · 7.71 KB
/
devbox.json
File metadata and controls
205 lines (205 loc) · 7.71 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"packages": {
"process-compose": "latest",
"act": "latest",
"shellcheck": "latest",
"nodejs": "latest",
"treefmt": "latest",
"gh": "latest",
"claude-code": "latest"
},
"env": {
"REPORTS_DIR": "reports",
"TEST_RESULTS_DIR": "reports/results",
"TEST_LOGS_DIR": "reports/logs",
"TEST_TUI": "false"
},
"shell": {
"scripts": {
"lint": [
"echo 'Running linting and validation...'",
"treefmt --fail-on-change"
],
"test:android": [
"echo 'Running Android plugin tests...'",
"cd examples/android && devbox run test"
],
"test:ios:lib": [
"sh plugins/tests/ios/test-lib.sh"
],
"test:ios": [
"devbox run test:plugin:ios",
"devbox run test:integration:ios"
],
"test:unit": [
"echo 'Running orchestrated unit tests...'",
"process-compose -f tests/unit-tests.yaml --tui=${TEST_TUI:-false}"
],
"test:e2e:android": [
"echo 'Running Android example E2E test...'",
"cd examples/android && devbox run test:e2e"
],
"test:e2e:ios": [
"echo 'Running iOS example E2E test...'",
"cd examples/ios && devbox run test:e2e"
],
"test:e2e:rn": [
"echo 'Running React Native example E2E test...'",
"cd examples/react-native && devbox run test:e2e"
],
"test:e2e": [
"echo 'Running E2E tests (orchestrated: android+ios parallel, then rn)...'",
"process-compose -f tests/e2e.yaml --no-server --tui=${TEST_TUI:-false}"
],
"test": [
"echo '========================================'",
"echo 'Running ALL tests (fast + e2e)'",
"echo '========================================'",
"echo ''",
"devbox run test:fast",
"echo ''",
"echo '========================================'",
"echo 'Running E2E tests...'",
"echo '========================================'",
"devbox run test:e2e"
],
"format": [
"echo 'Running treefmt (validates shell scripts, workflows, and process-compose configs)...'",
"treefmt"
],
"format:check": [
"echo 'Checking formatting with treefmt...'",
"treefmt --fail-on-change"
],
"sync": [
"echo 'Syncing example projects with latest plugins...'",
"echo ''",
"echo '1/3 Android...'",
"(cd examples/android && rm -rf .devbox devbox.d devbox.lock && devbox install)",
"echo ' Generating device lock file...'",
"(cd examples/android && ANDROID_DEVICES_EVAL=1 devbox run android:devices:eval > /dev/null)",
"echo ' ✓ Android synced'",
"echo ''",
"echo '2/3 iOS...'",
"(cd examples/ios && rm -rf .devbox devbox.d devbox.lock && devbox install)",
"echo ' Generating device lock file...'",
"(cd examples/ios && IOS_DEVICES_EVAL=1 devbox run ios:devices:eval > /dev/null)",
"echo ' ✓ iOS synced'",
"echo ''",
"echo '3/3 React Native...'",
"(cd examples/react-native && rm -rf .devbox devbox.d devbox.lock && devbox install)",
"echo ' Generating Android lock file...'",
"(cd examples/react-native && ANDROID_DEVICES_EVAL=1 devbox run android:devices:eval > /dev/null)",
"echo ' Generating iOS lock file...'",
"(cd examples/react-native && IOS_DEVICES_EVAL=1 devbox run ios:devices:eval > /dev/null)",
"echo ' ✓ React Native synced'",
"echo ''",
"echo '✓ All examples synced successfully!'",
"echo ''",
"echo 'Note: AVDs and simulators will be created automatically on first emulator/simulator start.'"
],
"test:plugin:android:lib": [
"bash plugins/tests/android/test-lib.sh"
],
"test:plugin:android:devices": [
"bash plugins/tests/android/test-devices.sh"
],
"test:plugin:android:apk-detection": [
"(cd examples/android && devbox run bash ../../plugins/tests/android/test-apk-detection.sh)"
],
"test:plugin:android:apk-resolution": [
"bash plugins/tests/android/test-apk-resolution.sh"
],
"test:plugin:android:emulator-detection": [
"(cd examples/android && devbox run bash ../../plugins/tests/android/test-emulator-detection.sh)"
],
"test:plugin:android:emulator-modes": [
"(cd examples/android && devbox run bash ../../plugins/tests/android/test-emulator-modes.sh)"
],
"test:plugin:android": [
"devbox run test:plugin:android:lib",
"devbox run test:plugin:android:devices",
"devbox run test:plugin:android:apk-detection",
"devbox run test:plugin:android:apk-resolution"
],
"test:plugin:android:all": [
"echo 'Running all Android plugin tests (including emulator tests)...'",
"devbox run test:plugin:android:lib",
"devbox run test:plugin:android:devices",
"devbox run test:plugin:android:emulator-detection",
"devbox run test:plugin:android:emulator-modes"
],
"test:plugin:ios:lib": [
"sh plugins/tests/ios/test-lib.sh"
],
"test:plugin:ios:devices": [
"sh plugins/tests/ios/test-devices.sh"
],
"test:plugin:ios:app-resolution": [
"bash plugins/tests/ios/test-app-resolution.sh"
],
"test:plugin:ios": [
"devbox run test:plugin:ios:lib",
"devbox run test:plugin:ios:devices",
"devbox run test:plugin:ios:app-resolution"
],
"test:plugin:devbox-mcp": [
"echo 'Running devbox-mcp plugin tests...'",
"process-compose -f plugins/devbox-mcp/tests/test-suite.yaml --no-server --tui=${TEST_TUI:-false}"
],
"test:plugin:devbox-mcp:watch": [
"echo 'Running devbox-mcp plugin tests (interactive mode)...'",
"TEST_TUI=true process-compose -f plugins/devbox-mcp/tests/test-suite.yaml"
],
"test:plugin:rn:lib": [
"bash plugins/tests/react-native/test-lib.sh"
],
"test:plugin:rn": [
"devbox run test:plugin:rn:lib"
],
"test:plugin:unit": [
"echo 'Running plugin unit tests...'",
"devbox run test:plugin:android",
"devbox run test:plugin:ios",
"devbox run test:plugin:rn",
"devbox run test:plugin:devbox-mcp"
],
"test:integration:android:device-mgmt": [
"/bin/bash tests/integration/android/test-device-mgmt.sh"
],
"test:integration:android:validation": [
"/bin/bash tests/integration/android/test-validation.sh"
],
"test:integration:android": [
"/bin/bash tests/integration/android/test-device-mgmt.sh",
"/bin/bash tests/integration/android/test-validation.sh"
],
"test:integration:ios:device-mgmt": [
"/bin/bash tests/integration/ios/test-device-mgmt.sh"
],
"test:integration:ios:cache": [
"/bin/bash tests/integration/ios/test-cache.sh"
],
"test:integration:ios": [
"/bin/bash tests/integration/ios/test-device-mgmt.sh",
"/bin/bash tests/integration/ios/test-cache.sh"
],
"test:integration": [
"echo 'Running integration tests...'",
"/bin/bash tests/integration/android/test-device-mgmt.sh",
"/bin/bash tests/integration/android/test-validation.sh",
"/bin/bash tests/integration/ios/test-device-mgmt.sh",
"/bin/bash tests/integration/ios/test-cache.sh"
],
"bump": [
"bash scripts/bump.sh \"${@}\""
],
"test:fast": [
"echo 'Running fast tests (lint + unit + integration in parallel)...'",
"devbox run lint",
"devbox run test:unit",
"bash tests/test-summary.sh"
]
}
}
}