Socket
Socket
Sign inDemoInstall

coveralls-merge

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    coveralls-merge

Upload coverage for C extensions to coveralls.io


Maintainers
1

Readme

Coveralls-merge

Get coverage data on Python C extensions, on both the python side and the C side of the api. The package combines the output from coverage-lcov_ and coveralls_ to upload your coverage data to coveralls.io_.

.. _coverage-lcov: https://github.com/okkez/coveralls-lcov .. _coveralls: https://github.com/coagulant/coveralls-python .. _coveralls.io: https://coveralls.io

This only supports travis-ci_.

.. _travis-ci: https://travis-ci.org

Usage

Setup coveralls, and make sure that it's working with coveralls.io for the python portion. Then, to add c coverage, add a few lines to your .travis.yml::

python:
  - 2.7

install:
    # install lcov
  - "sudo apt-get -qq install lcov"
    # install test runners, coveralls, and coveralls-merge
  - "pip install coveralls nose coveralls-merge"
    # install the lcov parser
  - "gem install coveralls-lcov"

script:
  - coverage erase
  - python setup.py clean
  # build, using coverage flag
  - CFLAGS="-coverage" python setup.py build_ext --inplace

  # run your tests, with coverage as normal
  - coverage run -m nose Tests/test_*.py

after_success:
  # combine and generate json
  - lcov --capture --directory . -b . --output-file coverage.info
  - coveralls-lcov -v -n coverage.info > coverage.c.json

  # upload
  - coveralls-merge coverage.c.json

Changelog

0.0.3 (2018-01-25)

  • Strip parameter to strip leading directories in site-packages from path

0.0.2 (2014-07-30)

  • Requests fix
  • Doc Changes

0.0.1 (2014-07-30)

  • Initial upload

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc