Commit 8f8849fa authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Update .gitlab-ci.yml

parent 04fc0021
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 ]]; 
+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/*' \
@@ -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