Skip to content

Commit

Permalink
Added codecov support.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed May 28, 2018
1 parent ef70f76 commit 96803ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ before_script:

script:
- ../configure CFLAGS="--coverage -ftest-coverage -fprofile-arcs" LDFLAGS=-lgcov --enable-debug && build-wrapper-linux-x86-64 --out-dir bw-output make all
- make -k check VERBOSE=true
- make -k check VERBOSE=true || { test "$SEND_COVERAGE_EVEN_IF_TESTS_FAIL" = yes && curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"; }
- bash ../tests/recursively_generate_gcov.sh .
- cd .. && sonar-scanner

after_success:
- curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"

addons:
sonarcloud:
organization: "openscap"
Expand Down

0 comments on commit 96803ed

Please sign in to comment.