Skip to content

Commit

Permalink
Add support for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Dec 8, 2017
1 parent f9c10b5 commit abdd92e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .coveragerc

This file was deleted.

6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ addons:
- librtmp-dev
install:
- pip install -U setuptools pip
- pip install unittest2 mock pycurl flake8 tox-travis
- pip install unittest2 mock pycurl flake8 tox-travis coveralls
- python setup.py clean --all
- python setup.py install
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 stripe; fi
- python -W all -bb -W error::BytesWarning setup.py test
- python -W all -bb -W error::BytesWarning -m coverage.__main__ run setup.py test
after_success:
coveralls
matrix:
allow_failures:
- python: 3.7-dev
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Stripe Python Library [![Build Status](https://travis-ci.org/stripe/stripe-python.svg?branch=master)](https://travis-ci.org/stripe/stripe-python)
# Stripe Python Library

[![Build Status](https://travis-ci.org/stripe/stripe-python.svg?branch=master)](https://travis-ci.org/stripe/stripe-python)
[![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-python/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-python?branch=master)

The Stripe Python library provides convenient access to the Stripe API from
applications written in the Python language. It includes a pre-defined set of
Expand Down
13 changes: 10 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
# and then run "tox" from this directory.

[tox]
envlist = py26, py27, pypy, pypy3.3-5.2-alpha1, py33, py34, py35
envlist = py26, py27, pypy, pypy3.3-5.2-alpha1, py33, py34, py35, py36

[testenv]
deps =
unittest2
pycurl>=7.19
requests>=0.8.8
mock
coverage
commands =
python setup.py clean --all
python -W all -bb -W error::BytesWarning setup.py test {posargs}
python -W all -bb -W error::BytesWarning -m coverage.__main__ run setup.py test {posargs}
setenv =
STRIPE_TEST_PYCURL = true

Expand All @@ -25,11 +26,17 @@ deps =
pycurl>=7.19
requests>=0.8.8
mock
coverage
commands =
flake8 stripe
python setup.py clean --all
python -W all -bb -W error::BytesWarning setup.py test {posargs}
python -W all -bb -W error::BytesWarning -m coverage.__main__ run setup.py test {posargs}

[flake8]
exclude =
six.py

[coverage:run]
source = stripe
omit =
stripe/six.py

0 comments on commit abdd92e

Please sign in to comment.