Loading .gitlab-ci.yml +2 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,8 @@ test:ubuntu:latest: - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]" after_script: - pwd - ls -lR - (cd build && ../gencov.sh) - pwd - if [[ -e build/tests.log ]]; Loading gencov.sh +4 −3 Original line number Diff line number Diff line #!/bin/bash GIT_ROOTDIR=`git rev-parse --show-toplevel` LCOV=`which lcov` /usr/local/bin/lcov \ ${LCOV} \ `find ${GIT_ROOTDIR} -name "*.gcda" 2>/dev/null | xargs -I{} dirname {} | uniq | xargs -I {} echo -n " --directory "{}` \ --capture \ --output-file gcov.info \ 2&>1 /dev/null /usr/local/bin/lcov \ ${LCOV} \ --remove gcov.info \ '/usr/include/*' \ '/usr/local/include/*' \ Loading @@ -19,6 +20,6 @@ GIT_ROOTDIR=`git rev-parse --show-toplevel` -o norns.info \ 2&>1 /dev/null /usr/local/bin/lcov -l norns.info ${LCOV} -l norns.info #genhtml -o html/coverage norns.info 2>/dev/null Loading
.gitlab-ci.yml +2 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,8 @@ test:ubuntu:latest: - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]" after_script: - pwd - ls -lR - (cd build && ../gencov.sh) - pwd - if [[ -e build/tests.log ]]; Loading
gencov.sh +4 −3 Original line number Diff line number Diff line #!/bin/bash GIT_ROOTDIR=`git rev-parse --show-toplevel` LCOV=`which lcov` /usr/local/bin/lcov \ ${LCOV} \ `find ${GIT_ROOTDIR} -name "*.gcda" 2>/dev/null | xargs -I{} dirname {} | uniq | xargs -I {} echo -n " --directory "{}` \ --capture \ --output-file gcov.info \ 2&>1 /dev/null /usr/local/bin/lcov \ ${LCOV} \ --remove gcov.info \ '/usr/include/*' \ '/usr/local/include/*' \ Loading @@ -19,6 +20,6 @@ GIT_ROOTDIR=`git rev-parse --show-toplevel` -o norns.info \ 2&>1 /dev/null /usr/local/bin/lcov -l norns.info ${LCOV} -l norns.info #genhtml -o html/coverage norns.info 2>/dev/null