Skip to content
Merged
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
23 changes: 21 additions & 2 deletions noir-projects/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,40 @@ build:
SAVE ARTIFACT mock-protocol-circuits

test:
BUILD +test-protocol-circuits
BUILD +test-aztec-nr
BUILD +test-contracts

test-protocol-circuits:
FROM +build

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

RUN cd /usr/src/noir-projects/noir-protocol-circuits && nargo test --silence-warnings

test-aztec-nr:
FROM ../yarn-project/+txe

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

COPY +build/. /usr/src/noir-projects

RUN cd /usr/src/noir-projects/noir-protocol-circuits && nargo test --silence-warnings

RUN cd /usr/src/yarn-project/txe && yarn start & \
# Wait for TXE to initialize
sleep 5 && \
cd /usr/src/noir-projects/aztec-nr && \
NARGO_FOREIGN_CALL_TIMEOUT=300000 nargo test --silence-warnings --oracle-resolver http://localhost:8080

test-contracts:
FROM ../yarn-project/+txe

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

COPY +build/. /usr/src/noir-projects

RUN cd /usr/src/yarn-project/txe && yarn start & \
# Wait for TXE to initialize
sleep 5 && \
Expand Down