Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Aug 26, 2015
1 parent 14edf95 commit 2552b63
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
branch = True
source =
pymysql


[report]
exclude_lines =
pragma: no cover
except ImportError:
if DEBUG:
def __repr__
def __str__
raise NotImplementedError
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ matrix:
env: TOX_ENV=py34

install:
- pip install -U tox
- pip install -U tox coveralls

before_script:
- "mysql -e 'create database test_pymysql DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'"
- "mysql -e 'create database test_pymysql2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'"
- "mysql -e 'select VERSION();'"
- cp .travis.databases.json pymysql/tests/databases.json
- export COVERALLS_PARALLEL=true

after_success:
- coveralls

script: tox -e $TOX_ENV
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
envlist = py26,py27,py33,py34,pypy,pypy3

[testenv]
commands = ./runtests.py
commands = coverage run ./runtests.py
deps = unittest2
coverage

0 comments on commit 2552b63

Please sign in to comment.