Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
branch = True
source = sendgrid
omit = site-packages
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ venv/
.tox/
profile*
README.txt
temp*.pysendgrid.env
temp*.py
.coverage
coverage.xml
htmlcov
temp*.py
sendgrid.env
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ install:
- pip install flask
- pip install six
- pip install pypandoc
- pip install coverage
- pip install codecov
# - sudo apt-get install -y pandoc
addons:
apt_packages:
Expand All @@ -24,7 +26,9 @@ before_script:
- export PATH=$PATH:$PWD/prism/bin/
- ./test/prism.sh
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; else python -m unittest discover; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then coverage run unit2 discover; else coverage run -m unittest discover; fi
after_script:
- codecov
before_deploy:
- python ./register.py
deploy:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)

[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-python.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-python)
[![codecov](https://codecov.io/gh/meahow/sendgrid-python/branch/issue_251_coverage/graph/badge.svg)](https://codecov.io/gh/meahow/sendgrid-python)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This url need to be changed once you setup a (free) codecov.io account

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thinkingserious can you please create this with the SendGridDX account?

[![Docker Badge](https://img.shields.io/docker/automated/sendgrid/sendgrid-python.svg)](https://hub.docker.com/r/sendgrid/sendgrid-python/)
[![Email Notifications Badge](https://dx.sendgrid.com/badge/python)](https://dx.sendgrid.com/newsletter/python)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt)
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
envlist = py26, py27, py34, py35, py36

[testenv]
commands = {envbindir}/python -m unittest discover -v []
commands = coverage erase
coverage run -m unittest discover -v []
coverage report
deps = -rrequirements.txt
coverage


[testenv:py26]
commands = {envbindir}/unit2 discover -v []
commands = coverage erase
coverage run {envbindir}/unit2 discover -v []
coverage report
deps = unittest2
{[testenv]deps}
basepython = python2.6
Expand Down