forked from AztecProtocol/barretenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·44 lines (40 loc) · 1.32 KB
/
bootstrap.sh
File metadata and controls
executable file
·44 lines (40 loc) · 1.32 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
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source
function bootstrap_all {
# To run bb we need a crs.
# Download ignition up front to ensure no race conditions at runtime.
[ -n "${SKIP_BB_CRS:-}" ] || ./scripts/download_bb_crs.sh
./bbup/bootstrap.sh $@
./cpp/bootstrap.sh $@
./ts/bootstrap.sh $@
./acir_tests/bootstrap.sh $@
}
function hash {
cache_content_hash "^barretenberg"
}
cmd=${1:-}
case "$cmd" in
hash)
hash
;;
""|clean|ci|fast|test|test_cmds|bench|bench_cmds|release)
bootstrap_all $@
;;
bootstrap_e2e_hack)
echo "WARNING: This assumes your PR only changes barretenberg and the rest of the repository is unchanged from master."
echo "WARNING: This is only sound if you have not changed VK generation! (or noir-projects VKs will be incorrect)."
echo "WARNING: It builds up until yarn-project and allows end-to-end tests (not boxes/playground/release image etc)."
merge_base=$(git merge-base HEAD origin/master)
for project in noir barretenberg avm-transpiler noir-projects l1-contracts yarn-project ; do
if [ $project == barretenberg ]; then
../$project/bootstrap.sh # i.e. this script
else
AZTEC_CACHE_COMMIT=$merge_base ../$project/bootstrap.sh
fi
done
;;
*)
echo "Unknown command: $cmd"
exit 1
;;
esac