Skip to content

Commit

Permalink
exp: run bb bin test in its own dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Aug 18, 2023
1 parent 807a003 commit 0b29286
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ jobs:
name: "Test"
command: cond_spot_run_tests bb.js

bb-bin-test:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build"
command: build bb-bin-test

barretenberg-acir-tests:
docker:
- image: aztecprotocol/alpine-build-image
Expand Down Expand Up @@ -1209,6 +1220,10 @@ workflows:
requires:
- bb-js
<<: *defaults
- bb-bin-test:
requires:
- bb-js
<<: *defaults
- barretenberg-acir-tests:
requires:
- barretenberg-x86_64-linux-clang-assert
Expand Down
11 changes: 11 additions & 0 deletions build_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
},
"bb.js": {
"buildDir": "circuits/cpp/barretenberg/ts",
"dockerfile": "Dockerfile",
"rebuildPatterns": [
"^circuits/cpp/barretenberg/ts/"
],
"dependencies": [
"barretenberg-wasm-linux-clang"
]
},
"bb-bin-test": {
"buildDir": "circuits/cpp/barretenberg/ts",
"dockerfile": "Dockerfile.bin-test",
"rebuildPatterns": [
"^circuits/cpp/barretenberg/ts/"
],
Expand Down
4 changes: 0 additions & 4 deletions circuits/cpp/barretenberg/ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ COPY . .
ENV DOCKER_ENV=true
RUN yarn formatting && yarn build:ts:browser && yarn build:ts:node

# Run bb.js binary tests
WORKDIR /usr/src/barretenberg/ts/bin-test
RUN ./bin-test.sh

CMD ["yarn", "test"]
6 changes: 6 additions & 0 deletions circuits/cpp/barretenberg/ts/Dockerfile.bin-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/bb.js
COPY --from=0 . .

# Run bb.js binary tests
WORKDIR /usr/src/barretenberg/ts/bin-test
RUN ./bin-test.sh

0 comments on commit 0b29286

Please sign in to comment.