Skip to content

Commit

Permalink
Add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Mar 19, 2024
1 parent 42e31db commit f7300e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci_support/run_docker_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
set -xe

cd /tmp
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=~/.local \
-DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=32 \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -D_GLIBCXX_ASSERTIONS" \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -D_GLIBCXX_ASSERTIONS -fno-inline --coverage" \
-DSWIG_COMPILE_FLAGS="-O1 -Wno-unused-parameter" \
-DSPHINX_FLAGS="-W -T -j4" \
/io
-B build /io
cd build
make install
make tests
ctest --output-on-failure --timeout 100 ${MAKEFLAGS}
lcov --no-external --capture --initial --directory $PWD --output-file lcov.info

uid=$1
gid=$2
if test -n "${uid}" -a -n "${gid}"
then
sudo cp -r ~/.local/share/doc/*/html /io
sudo chown -R ${uid}:${gid} /io/html
sudo cp -r ~/.local/share/doc/*/html lcov.info /io
sudo chown -R ${uid}:${gid} /io/html /io/lcov.info
fi
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
run: |
docker pull openturns/archlinux-module
docker run -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-module /io/.ci_support/run_docker_linux.sh `id -u` `id -g`
- uses: romeovs/lcov-reporter-action@v0.3.1
with:
lcov-file: ./lcov.info
- name: Upload
if: ${{ github.ref == 'refs/heads/master' }}
run: |
Expand Down

1 comment on commit f7300e7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

0.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
/tmp/build/CMakeFiles/3.28.3/CompilerIdCXX
   CMakeCXXCompilerId.cpp0%100%0%0%844, 846–849, 851, 865–866, 868
/tmp/build/python/src/CMakeFiles/otsvm_python.dir
   otsvm_modulePYTHON_wrap.cxx0%100%0%0%10000, 10002, 10009, 10013, 10019–10022, 10024–10027, 10029, 10031, 10034, 10036–10059, 10061–10062, 10068, 10071, 10076, 10078–10080, 10082, 10084, 10087, 10089–10112, 10114, 10121, 10125, 10131–10134, 10136–10139, 10141, 10143, 10146, 10148–10171, 10173–10174, 10180, 10183, 10186, 10188, 10190–10192, 10194, 10196, 10199, 10201–10224, 10226, 10230, 10233, 10236–10237, 10239, 10242–10245, 10247, 10249, 10253, 10255–10256, 10260, 10264, 10267, 10269–10292, 10294–10295, 10298, 10301, 10304, 10307, 10309, 10311–10313, 10315, 10317, 10320, 10322–10345, 10347, 10351, 10354, 10357–10359, 10361–10362, 10366–10369, 10371, 10373, 10377, 10379–10380, 10384, 10388, 10392, 10394–10395, 10399, 10403, 10406, 10408–10431, 10433, 10437, 10440, 10443–10445, 10447–10448, 10450, 10452–10455, 10457, 10459, 10463, 10465–10466, 10470, 10474, 10478, 10480–10481, 10485, 10489, 10492, 10494–10517, 10519, 10523, 10526, 10529–10531, 10533–10534, 10536, 10538–10541, 10543, 10545, 10549, 10551–10552, 10556, 10560, 10564, 10566–10567, 10571, 10575, 10578, 10580–10603, 10605, 10609, 10612, 10615, 10619–10622, 10624–10625, 10629, 10632, 10634–10657, 10659, 10666, 10668, 10672–10675, 10677, 10679–10680, 10682, 10688–10689, 10692, 10695, 10698–10699, 10703–10704, 10707, 10711, 10714–10715, 10719–10720, 10724–10725, 10728, 10734–10735, 10746, 10749, 10753, 10755–10757, 10759, 10761, 10764, 10791–10792, 10798, 10800–10802, 10805–10806, 10809, 10812, 10815, 10817, 10819–10821, 10823, 10825, 10828, 10830–10853, 10855–10856, 10859, 10862, 10872–10875, 10877–10880, 10882, 10884, 10887, 10889–10912, 10914, 10921, 10928–10931, 10933, 10935, 10938, 10940–10963, 10965, 10972, 10976, 10978, 10981, 10983–11006, 11008–11009, 11015, 11018, 11021, 11023, 11025–11027, 11029, 11031, 11034, 11036–11059, 11061–11062, 11065, 11068, 11071, 11076, 11078–11080, 11082, 11084, 11087, 11089–11112, 11114, 11121, 11125, 11131–11134, 11136–11139, 11141, 11143, 11146, 11148–11171, 11173–11174, 11180, 11183, 11188, 11190–11192, 11194, 11196, 11199, 11201–11224, 11226, 11233, 11237, 11243–11246, 11248–11251, 11253, 11255, 11258, 11260–11283, 11285–11286, 11292, 11295, 11298, 11300, 11302–11304, 11306, 11308, 11311, 11313–11336, 11338, 11342, 11345, 11348–11349, 11351, 11354–11357, 11359, 1136, 11361, 11365, 11367–11368, 11372, 11376, 11379, 1138, 11381–11399, 1140, 11400–11404, 11406–11407, 11410, 11413, 11416, 11419, 11421, 11423–11425, 11427, 11429, 11432, 11434–11457, 11459, 11463, 11466, 11469–11471, 11473–11474, 11478–11481, 11483, 11485, 11489, 11491–11492, 11496, 11500, 11504, 11506–11507, 11511, 11515, 11518, 11520–11543, 11545, 11549, 11552, 11555–11557, 11559–11560, 11562, 11564–11567, 11569, 11571, 11575, 11577–11578, 11582, 11586, 11590, 11592–11593, 11597, 11601, 11604, 11606–11629, 11631, 11635, 11638, 11641–11643, 11645–11646, 11648, 11650–11653, 11655, 11657, 1166, 11661, 11663–11664, 11668, 1167, 11672, 11676, 11678–11679,

Please sign in to comment.