Add llvm-cov to rust
This commit is contained in:
parent
50c5706f1a
commit
fe79d3c6b6
|
@ -13,7 +13,7 @@ Gives you access to `rsync`, `ssh`, and `scp` commands.
|
||||||
|
|
||||||
### rust
|
### rust
|
||||||
|
|
||||||
Rust stable toolchain, with `rustup`, `fmt`, `clippy`, `llvm-tools`, and `audit`.
|
Rust stable toolchain, with `rustup`, `fmt`, `clippy`, `llvm-cov`, `llvm-tools`, and `audit`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,16 @@ FROM alpine:latest
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
|
LABEL org.opencontainers.image.authors="kaan@bgenc.net"
|
||||||
|
|
||||||
|
# Install rustup and other base packages we need to build stuff.
|
||||||
|
# Installing rustup with rustup-init also brings in fmt and clippy.
|
||||||
RUN apk add --no-cache rustup build-base pkgconfig openssl-dev \
|
RUN apk add --no-cache rustup build-base pkgconfig openssl-dev \
|
||||||
&& rustup-init -y
|
&& rustup-init -y
|
||||||
|
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
|
||||||
RUN rustup component add llvm-tools-preview
|
# Install cargo llvm-cov and llvm-tools
|
||||||
|
RUN rustup component add llvm-tools \
|
||||||
|
&& cargo install cargo-llvm-cov
|
||||||
|
|
||||||
|
# Install cargo-audit
|
||||||
RUN cargo install cargo-audit
|
RUN cargo install cargo-audit
|
||||||
|
|
Loading…
Reference in a new issue