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 63f79d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .ci_support/run_docker_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@
set -xe

cd /tmp
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=~/.local \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-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 63f79d3

@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–10017, 10019–10022, 10024–10027, 10029–10032, 10034, 10036–10059, 10061–10062, 10068–10074, 10076–10080, 10082–10085, 10087, 10089–10112, 10114, 10121–10129, 10131–10134, 10136–10139, 10141–10144, 10146, 10148–10171, 10173–10174, 10180–10186, 10188–10192, 10194–10197, 10199, 10201–10224, 10226, 10230, 10233–10240, 10242–10245, 10247–10249, 10253, 10255–10256, 10260, 10263–10265, 10267, 10269–10292, 10294–10295, 10298, 10301–10307, 10309–10313, 10315–10318, 10320, 10322–10345, 10347, 10351, 10354–10364, 10366–10369, 10371–10373, 10377, 10379–10380, 10384, 10387–10388, 10392, 10394–10395, 10399, 10402–10404, 10406, 10408–10431, 10433, 10437, 10440–10450, 10452–10455, 10457–10459, 10463, 10465–10466, 10470, 10473–10474, 10478, 10480–10481, 10485, 10488–10490, 10492, 10494–10517, 10519, 10523, 10526–10536, 10538–10541, 10543–10545, 10549, 10551–10552, 10556, 10559–10560, 10564, 10566–10567, 10571, 10574–10576, 10578, 10580–10603, 10605, 10609, 10612–10617, 10619–10622, 10624–10625, 10627–10630, 10632, 10634–10657, 10659, 10666–10668, 10672–10675, 10677–10682, 10685–10689, 10691–10692, 10695–10699, 10701–10704, 10706–10707, 10711–10715, 10717–10720, 10722–10725, 10727–10728, 10734–10735, 10746–10751, 10753–10757, 10759–10762, 10764, 10791–10792, 10798–10802, 10805–10806, 10809–10815, 10817–10821, 10823–10826, 10828, 10830–10853, 10855–10856, 10859, 10862–10870, 10872–10875, 10877–10880, 10882–10885, 10887, 10889–10912, 10914, 10921–10926, 10928–10931, 10933–10936, 10938, 10940–10963, 10965, 10972–10974, 10976–10979, 10981, 10983–11006, 11008–11009, 11015–11021, 11023–11027, 11029–11032, 11034, 11036–11059, 11061–11062, 11065, 11068–11074, 11076–11080, 11082–11085, 11087, 11089–11112, 11114, 11121–11129, 11131–11134, 11136–11139, 11141–11144, 11146, 11148–11171, 11173–11174, 11180–11186, 11188–11192, 11194–11197, 11199, 11201–11224, 11226, 11233–11241, 11243–11246, 11248–11251, 11253–11256, 11258, 11260–11283, 11285–11286, 11292–11298, 11300–11304, 11306–11309, 11311, 11313–11336, 11338, 11342, 11345–11352, 11354–11357, 11359, 1136, 11360–11361, 11365, 11367–11368, 1137, 11372, 11375–11377, 11379, 1138, 11381–11389, 1139, 11390–11399, 1140, 11400–11404, 11406–11407, 11410, 11413–11419, 11421–11425, 11427–11430, 11432, 11434–11457, 11459, 11463, 11466–11476, 11478–11481, 11483–11485, 11489, 11491–11492, 11496, 11499–11500, 11504, 11506–11507, 11511, 11514–11516, 11518, 11520–11543, 11545, 11549, 11552–11562, 11564–11567, 11569–11571, 11575, 11577–11578, 11582, 11585–11586, 11590, 11592–11593, 11597, 11600–11602, 11604, 11606–11629, 11631, 11635, 11638–11648, 11650–11653, 11655–11657, 1166, 11661, 11663–11664, 11668, 1167, 11671–11672, 11676, 11678–11679, 1168, 11683, 11686–11688, 1169, 11690, 11692–11715, 11717, 11721, 11724–11729, 11731–11734, 11736–11737, 11739–11742, 11744, 11746–11769, 11771, 11778–11780, 11784–11787, 11789–11794, 11797–11801, 11803–11804, 11807–11811, 11813–11816, 11818–11819, 11824–11825, 11835–11840, 11842–11846, 11848–11851, 11853, 11880–11881, 11887–11891, 11894–11895, 11898–11904, 11906–11910, 11912–11915, 11917, 11919–11942, 11944–11945, 11948, 11951–11953, 11955–11958, 11960, 11962–11985, 11987–11988, 11994–12000, 12002–12006, 12008–12011, 12013, 12015–12019, 1202, 12020–12038, 1204, 12040–12041, 12044, 12047–12049, 1205, 12050–12053, 12055–12059, 12061–12064, 12066, 12068–12079, 1208, 12080–12091, 12093, 12097, 1210, 12100–12107, 12109–12112, 12114–12116,

Please sign in to comment.