Skip to content

Commit 0f4078b

Browse files
Fix BUCK scenario to avoid missing okBuck files 2/2
1 parent 2b16125 commit 0f4078b

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

mobile_app1/performance.scenarios

+1-5
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@ fullLocalCache {
3333
clean-build-before = [
3434
{
3535
schedule = BUILD
36-
commands = ["rm", "-rf", "buck-out"]
36+
commands = ["./buckw", "clean"]
3737
},
3838
{
3939
schedule = BUILD
4040
commands = ["./setup_buck.sh"]
41-
},
42-
{
43-
schedule = BUILD
44-
commands = ["./buckw", "build", ".okbuck/ext/..."]
4541
}
4642
]
4743
}

mobile_app1/setup_buck.sh

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
#!/bin/bash
22

3-
echo "Generating BUCK project file"
3+
echo ">>> Generating BUCK project file"
44
./gradlew -Dokbuck.wrapper=true okbuck --no-configuration-cache
5+
6+
echo ">>> Generating BUCK wrapper"
57
./gradlew -Dokbuck.wrapper=true buckWrapper --no-configuration-cache
68

7-
echo "Testing BUCK project"
8-
./buckw query rootModule
9+
echo ">>> Shutting down Gradle daemon"
10+
./gradlew --stop
11+
12+
if [[ -n "${DEVPOD_ENVIRONMENT}" ]]; then
13+
echo ">>> Waiting for buckw lock. Issue with devpod machine only."
14+
sleep 60
15+
fi
16+
17+
echo ">>> Prefetching external dependencies"
18+
SKIP_OKBUCK=0 ./buckw build .okbuck/ext/...
19+
20+
21+

0 commit comments

Comments
 (0)