Skip to content

Commit

Permalink
Updating docker image (adds gcov)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 6, 2024
1 parent 592a60c commit 342fce3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ jobs:
make main.o
./main.o
# Installing gcov
- name: Install gcov
run: |
apt-get update
apt-get install --no-install-recommends -y gcovr
- name: Generate coverage
run: |
cd tests
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN apt install -y --no-install-recommends make
RUN cd /bin/ && ln -s g++-9 g++ && \
echo export PATH=$PATH:/bin/:/user/bin/ > ~/.profile

# Installing gcov
RUN apt install -y --no-install-recommends gcovr

# Test run
COPY hello.cpp /home/hello.cpp
RUN echo "all:\n\tg++ -std=c++11 hello.cpp -o hello.o && ./hello.o" >> /home/Makefile
Expand Down

0 comments on commit 342fce3

Please sign in to comment.