Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -eu

export CLEAN=${1:-}

cd "$(dirname "$0")"

# Remove all untracked files and directories.
if [ -n "$CLEAN" ]; then
if [ "$CLEAN" = "clean" ]; then
Expand Down Expand Up @@ -32,13 +34,8 @@ if [ ! -f ~/.nvm/nvm.sh ]; then
exit 1
fi

cd circuits/cpp
./bootstrap.sh
cd ../..

cd l1-contracts
./bootstrap.sh
cd ..
circuits/cpp/bootstrap.sh
l1-contracts/bootstrap.sh

if [ "$(uname)" = "Darwin" ]; then
# works around https://github.com/AztecProtocol/aztec3-packages/issues/158
Expand Down
2 changes: 2 additions & 0 deletions circuits/cpp/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -eu

export WASI_VERSION=12

cd "$(dirname "$0")"

# Update the submodule
git submodule update --init --recursive

Expand Down
6 changes: 4 additions & 2 deletions circuits/cpp/scripts/run_tests_local
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

DIR="$(dirname "$0")"

# To be called LOCALLY for testing WITHOUT docker.
# Also serves as a core/helper script called by
# `run_tests` and `build_run_tests_docker_local`
Expand Down Expand Up @@ -39,9 +41,9 @@ fi

if [ "$ARCH" != "wasm" ]; then
# x86_64 / anything other than wasm
BUILD_DIR=build
BUILD_DIR=$DIR/../build
else
BUILD_DIR=build-wasm
BUILD_DIR=$DIR/../build-wasm
fi

# if TESTS is GLOB or empty, run all built tests
Expand Down
2 changes: 2 additions & 0 deletions l1-contracts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -eu

cd "$(dirname "$0")"

# Clean
rm -rf broadcast cache out serve

Expand Down