Skip to content

Update Dockerfile for code coverage #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ RUN yum update -y && yum install -y \
\
# Dependiences for building Titanium libfortifs \
prelink \
# Needed for generating a html report which shows combined test coverage.
# Provides the genhtml command which may conflict with same-name commands in
# texlive. Should only be an issue if we start using texlive for docs.
lcov \
&& yum clean all && \
rm -rf /var/cache/yum/* /tmp/* /var/tmp/*

Expand All @@ -48,7 +52,9 @@ RUN curl https://sh.rustup.rs -sSf > rustup-install.sh && \
rm rustup-install.sh && \
\
# Install rustfmt / cargo fmt for testing
rustup component add rustfmt clippy
rustup component add rustfmt clippy && \
# Install grcov for code coverage
cargo install grcov

# Build and install qemu
RUN git clone --depth 1 --branch v5.1.0 git://git.qemu-project.org/qemu.git && \
Expand Down Expand Up @@ -84,3 +90,4 @@ ENV LANG=en_US.utf-8

ENTRYPOINT ["/usr/local/bin/startup_script"]
CMD ["/bin/bash", "-l"]