Add Rust CI container
This commit is contained in:
Родитель
066f8e6f75
Коммит
bf1de810c7
|
@ -41,3 +41,7 @@ workflows:
|
|||
- build-and-deploy-image:
|
||||
name: firefox-build-and-deploy
|
||||
imageName: firefox
|
||||
|
||||
- build-and-deploy-image:
|
||||
name: rust-build-and-deploy
|
||||
imageName: rust
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
# latest stable Rust 1.x
|
||||
FROM rust:1-stretch
|
||||
|
||||
LABEL maintainer="Michael Cooper <mcooper@mozilla.com>"
|
||||
|
||||
# cargo-kcov needs kcov >= 30. Debian Stretch has kcov 11, so these steps build
|
||||
# kcov directly.
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev
|
||||
RUN cargo install cargo-kcov
|
||||
RUN mkdir -p /tmp/kcov && \
|
||||
cd /tmp/kcov && \
|
||||
cargo kcov --print-install-kcov-sh | sh
|
||||
|
||||
RUN rustup component add rustfmt && \
|
||||
rustup component add clippy
|
||||
|
||||
# Cleanup
|
||||
RUN apt-get clean && \
|
||||
rm -rf /tmp/kcov
|
Загрузка…
Ссылка в новой задаче