Sitelet https://web.archive.org/web/20200908074032/https://github.com/codecov/codecov-python/issues/282
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could I exclude some files from report? #282

Open
oktonion opened this issue Jun 23, 2020 · 0 comments
Open

How could I exclude some files from report? #282

oktonion opened this issue Jun 23, 2020 · 0 comments

Comments

@oktonion
Copy link

@oktonion oktonion commented Jun 23, 2020

Hello, I'm using Travis CI and codecov.io in my project build setup.

My .travis.yml looks like

...
    - os: linux
      compiler: gcc
      dist: precise
      env:
      - COMPILER=g++
      - CODE_COVERAGE_LIBS=-lgcov
      - CODE_COVERAGE_FLAGS=--coverage -fprofile-arcs -ftest-coverage
      - BUILD_LIB_SCRIPT="./build_lib.sh"
      - BUILD_SCRIPT="./build_tests.sh"
      - RUN_SCRIPT="./run_tests.sh"
      before_install: 
      - sudo pip install codecov
      after_success:
      - chmod +x ./get_code_cov.sh
      - ./get_code_cov.sh
      - codecov
...

the get_code_cov.sh script is simple as:

#!/bin/bash

for file in ./tests/bin/*; do
    gcov $file.gcda
done

Now I wonder: how could I make codecov to exclude files with patterns like "tests/*" from the generated report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.