Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clauverjat committed Mar 10, 2023
1 parent cc34e9f commit 96e7cbc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,14 @@ dev-tests-base:
&& poetry run mypy --install-types --non-interactive --ignore-missing-imports --follow-imports=skip \
&& poetry run pytest --ignore=tests/integration_test.py

COPY manifest.dev.template.toml manifest.prod.template.toml ./

dev-tests-mock:
FROM +dev-tests-base

CACHE /usr/local/cargo/git
CACHE /usr/local/cargo/registry
CACHE /blindai-preview/target

RUN cargo build --release
RUN cargo run --release & \
sleep 2 \
&& cd tests \
Expand All @@ -119,6 +123,14 @@ dev-tests-mock:
dev-tests-sgx:
FROM +dev-tests-base
# end-to-end tests

CACHE /usr/local/cargo/git
CACHE /usr/local/cargo/registry
CACHE /blindai-preview/target

COPY manifest.dev.template.toml manifest.prod.template.toml ./
RUN just build --release

RUN --privileged \
--mount=type=bind-experimental,target=/var/run/aesmd/aesm.socket,source=/var/run/aesmd/aesm.socket \
--mount=type=bind-experimental,target=/dev/sgx/,source=/dev/sgx/ \
Expand Down

0 comments on commit 96e7cbc

Please sign in to comment.