mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
ci: use rust stable for code coverage tests
This commit is contained in:
@@ -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 && \
|
||||
|
||||
@@ -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 && \
|
||||
|
||||
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user