ci: use rust stable for code coverage tests

This commit is contained in:
Aaron Blankstein
2022-09-12 10:56:59 -05:00
parent 3b4ca5f3cf
commit cff3d1e47b
3 changed files with 7 additions and 10 deletions

View File

@@ -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 && \

View File

@@ -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 && \

View File

@@ -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 && \