Skip to main content

Upload coverage data to coveralls.io from codeship with mercurial

Project description

https://img.shields.io/codeship/5f0d5a50-2194-0134-4a97-1eef50e7a565/default.svg https://coveralls.io/repos/bitbucket/hellwig/coveralls-hg/badge.svg?branch=default https://img.shields.io/pypi/v/coveralls-hg.svg

Coveralls HG

What is it?

  • An api library to coveralls.io
  • A script for uploading coverage data from a Codeship build environment

What problem does it solve?

Other coveralls library require git, this one is more dvcs agnostic with the upload script specifically made for codeship/bitbucket combination.

How do I install it?

pip install coveralls-hg

How do I use it?

There are two uses; as a library or as a script.

Library

# The user, repo are the bitbucket variables # The token is the coveralls project token >>> from coveralls_hg.api import API >>> api = API(user, repo, token) >>> api.set_source_files(path_to_coverage_data) >>> api.upload_coverage()

Script

The script requires COVERALLS_REPO_TOKEN to be set in then environment. Then run your test with coverage and run the script, for example:

$ coverage run test.py $ upload_coveralls_csbb

For the curious, csbb stands for Codeship BitBucket

What license is this?

Two-clause BSD, this license is also used when creating a new application with this tool, obviously this is just a template and you can change the license in your own application to whatever you think is the most appropriate. However I would like to encourage you not to change the license and perhaps even consider uploading your app to pypi.

How can I get support?

The tools I publish have already taken me considerable effort which I have given away free of charge, if you require guaranteed support please contact me via e-mail so we can discuss my fee.

How can I give you support?

Feedback, suggestions and comments via the repo’s bug tracker are always appreciated. Time permitting I will have a serious look at any pull requests.

Can I do something more that this?

Wow! Are you sure? Well if you are really sure, and that would be fantastic, you can leave your donation in the tip hat AKA patreon account; http://patreon.com/hellwig

Thank you very much! Your donation will help me towards my end-goal of a grid-independent small holding where I automate the sh*t out of it :-). In the mean time I’ll keep building stuff and where possible and practical open-source them under the BSD license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Coveralls-HG-0.0.0.1.tar.gz (5.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page