Commit c7a8ca17 authored by CARDOSI Paul's avatar CARDOSI Paul
Browse files

Merge branch 'fix-coverage' into 'master'

Temporary fix for coverage test.

See merge request bramas/spetabaru!24
parents 0dc80b8a ad81920a
......@@ -9,8 +9,12 @@ RUN apt-get update \
&& apt-get install -y make \
&& wget https://github.com/Kitware/CMake/releases/download/v3.15.6/cmake-3.15.6-Linux-x86_64.sh && chmod +x cmake-3.15.6-Linux-x86_64.sh \
&& ./cmake-3.15.6-Linux-x86_64.sh --skip-license --prefix=/usr/ \
&& apt-get install -y lcov \
&& apt-get install -y clang-8
&& apt-get install -y clang-8 \
&& git clone https://github.com/linux-test-project/lcov.git \
&& cd lcov \
&& git checkout v1.14 \
&& make install \
&& cd ..
# To rebuild and update the repo:
# - Make sure there are not images: sudo docker images
......
......@@ -47,14 +47,20 @@ spetabaru-debug-coverage:
tags:
- medium
script:
- cd ..
- git clone https://github.com/linux-test-project/lcov.git
- cd lcov
- git checkout v1.14
- make install
- cd ../spetabaru
- mkdir build
- cd build
- VERBOSE=1 CXX=g++-8 cmake -DCMAKE_BUILD_TYPE=DEBUG -DSPETABARU_USE_COVERAGE=ON ..
- make
- CTEST_OUTPUT_ON_FAILURE=TRUE make test
- lcov --directory ./ -c -o coverage-rapport.info
- lcov --list coverage-rapport.info
- genhtml -o ../coverage -t "Coverage example" coverage-rapport.info
- /usr/local/bin/lcov --gcov-tool /usr/bin/gcov-8 --directory ./ -c -o coverage-rapport.info
- /usr/local/bin/lcov --gcov-tool /usr/bin/gcov-8 --list coverage-rapport.info
- /usr/local/bin/genhtml -o ../coverage -t "Coverage example" coverage-rapport.info
artifacts:
paths:
- coverage/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment