Skip to content

Commit

Permalink
ci: use rust stable for code coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai committed Sep 30, 2022
1 parent 3b4ca5f commit cff3d1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/actions/bitcoin-int-tests/Dockerfile.code-cov
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ WORKDIR /build

ENV CARGO_MANIFEST_DIR="$(pwd)"

RUN rustup override set nightly-2022-01-14 && \
rustup component add llvm-tools-preview && \
RUN rustup component add llvm-tools-preview && \
cargo install grcov

ENV RUSTFLAGS="-Zinstrument-coverage" \
ENV RUSTFLAGS="-Cinstrument-coverage" \
LLVM_PROFILE_FILE="stacks-blockchain-%p-%m.profraw"

COPY . .

RUN cargo build --workspace && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ COPY . .

WORKDIR /src/testnet/stacks-node

RUN rustup override set nightly-2022-01-14 && \
rustup component add llvm-tools-preview && \
RUN rustup component add llvm-tools-preview && \
cargo install grcov

ENV RUSTFLAGS="-Zinstrument-coverage" \
ENV RUSTFLAGS="-Cinstrument-coverage" \
LLVM_PROFILE_FILE="stacks-blockchain-%p-%m.profraw"

RUN cargo test --no-run && \
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/bitcoin-int-tests/Dockerfile.large-genesis
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz

RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/

RUN rustup override set nightly-2022-01-14 && \
rustup component add llvm-tools-preview && \
RUN rustup component add llvm-tools-preview && \
cargo install grcov

ENV RUSTFLAGS="-Zinstrument-coverage" \
ENV RUSTFLAGS="-Cinstrument-coverage" \
LLVM_PROFILE_FILE="stacks-blockchain-%p-%m.profraw"

RUN cargo test --no-run --workspace && \
Expand Down

0 comments on commit cff3d1e

Please sign in to comment.