diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d71e1ed..c380e40 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -36,3 +36,13 @@ jobs: run: | bash bootstrap.sh ./configure && make && make check + + - uses: ammaraskar/gcc-problem-matcher@0.1 + name: GCC Problem Matcher + + - name: codecov report + if: startsWith(matrix.os, 'ubuntu') + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: | + bash .make-codecov diff --git a/.gitignore b/.gitignore index 882c65b..569b989 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,4 @@ tests/out tests/packet1.pcap *.d ar-lib +tcpflow-1.6.1 diff --git a/.make-codecov b/.make-codecov new file mode 100644 index 0000000..c20d48f --- /dev/null +++ b/.make-codecov @@ -0,0 +1,15 @@ +#!/bin/bash +# +# 2020-10-29 - slg - compile for codecov, run self-test, and upload results. +# +export CODECOV_TOKEN='d97f1a9d-88e1-4db4-b14c-5b2edef43cf6' +bash bootstrap.sh +./configure CFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' \ + CXXFLAGS='-g -O0 -fprofile-arcs -ftest-coverage' \ + LIBS='-lgcov' +make clean \ + && make \ + && make check \ + && gcov-9 -n -o . *cpp \ + && bash <(curl -s https://codecov.io/bash) +make distclean