This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-5
lines changed
devenv/integration/docker Expand file tree Collapse file tree 2 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM rust:alpine
1
+ FROM rust:bookworm as clarinet
2
2
3
- RUN apk add --no-cache g++ musl-dev git openssl-dev clang-dev libsecp256k1-dev
3
+ RUN apt update && apt install -y pkg-config libssl-dev clang && \
4
+ rm -rf /var/lib/apt/lists/*
5
+
6
+ RUN rustup update 1.71 && rustup default 1.71
7
+ RUN cargo install clarinet-cli --bin clarinet --branch develop --locked --git https://github.com/hirosystems/clarinet.git
8
+
9
+ FROM rust:bookworm as romeo
10
+
11
+ RUN apt update && \
12
+ apt install -y libssl-dev libclang-dev libsecp256k1-dev && \
13
+ rm -rf /var/lib/apt/lists/*
4
14
5
15
RUN rustup component add rustfmt
6
16
@@ -10,9 +20,23 @@ RUN cargo install cargo-nextest --locked
10
20
11
21
COPY . .
12
22
13
- RUN cargo nextest list
23
+ RUN cargo nextest archive --archive-file integration-tests.tar.zst
24
+
25
+ FROM rust:bookworm as runtime
26
+
27
+ RUN apt update && \
28
+ apt install -y openssl ca-certificates
29
+
30
+ COPY --from=clarinet /usr/local/cargo/bin/clarinet /usr/bin
14
31
15
- RUN apk --no-cache add curl jq
32
+ RUN apt install -y curl jq && \
33
+ rm -rf /var/lib/apt/lists/*
34
+
35
+ RUN cargo install cargo-nextest --locked
36
+
37
+ COPY --from=romeo integration-tests.tar.zst .
38
+
39
+ COPY . .
16
40
17
41
COPY ./devenv/integration/docker/entrypoint /bin/entrypoint
18
42
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ while [ "$(curl -s $API_URL | jq '.burn_block_height')" -lt $DEV_READY_HEIGHT ];
19
19
sleep 2
20
20
done
21
21
# any other service checks
22
+ # push contracts
23
+ cd romeo/asset-contract
24
+ clarinet deployments apply -d -p deployments/default.devnet-plan.yaml
25
+ cd -
22
26
23
27
echo with filter: " '$@ '"
24
- cargo nextest run -E " $@ and kind(test)"
28
+ cargo nextest run -E " $@ and kind(test)" --archive-file integration-tests.tar.zst
You can’t perform that action at this time.
0 commit comments