Skip to content

Commit

Permalink
Removed coverage tracking.
Browse files Browse the repository at this point in the history
Coverage output is relevant only for unittests, where it is guaranteed that
the covered code is tested sufficiently. The acceptance testing scripts
don't provide any reasonable indication that the code they execute is correct.
  • Loading branch information
matejak committed Jan 18, 2019
1 parent 2565678 commit bb00074
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 122 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@ before_install:
language: c

before_script:
- export CC=gcc-7 GCOV=gcov-7
- ./autogen.sh
- mkdir build
- cd build

script:
- ../configure CFLAGS="--coverage -ftest-coverage -fprofile-arcs" LDFLAGS=-lgcov --enable-debug
- ../configure --enable-sce
- build-wrapper-linux-x86-64 --out-dir bw-output make all || true # Will always fail builds on forked repositories.
- 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 . || true # Failures that occur here are harmless
- make -k check VERBOSE=true
- cd .. && sonar-scanner || true # Will always fail builds on forked repositories.

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

addons:
sonarcloud:
Expand Down
2 changes: 0 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ sonar.sources=src

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

sonar.cfamily.gcov.reportsPath=build
114 changes: 0 additions & 114 deletions tests/recursively_generate_gcov.sh

This file was deleted.

0 comments on commit bb00074

Please sign in to comment.