Skip to content

Commit

Permalink
added codecov (#240)
Browse files Browse the repository at this point in the history
* added codecov

* moved token to secrets
  • Loading branch information
simsong committed Mar 12, 2021
1 parent a069750 commit 04b0dab
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -94,3 +94,4 @@ tests/out
tests/packet1.pcap
*.d
ar-lib
tcpflow-1.6.1
15 changes: 15 additions & 0 deletions .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

0 comments on commit 04b0dab

Please sign in to comment.