Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Add coverage #3

Merged
merged 3 commits into from
May 31, 2015
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ docs/_build
__pycache__
.tox
.vagrant
.coverage
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ env:
- TOXENV=py34
- TOXENV=pypy
- TOXENV=pypy3
- TOXENV=coverage
install:
- "pip install tox"
# command to run tests
script: tox
branches:
only:
- master
- master
notifications:
email: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##Flask-SQLAlchemySession

[![Build Status](https://travis-ci.org/dtheodor/flask-sqlalchemy-session.svg?branch=master)](https://travis-ci.org/dtheodor/flask-sqlalchemy-session)
[![Coverage Status](https://coveralls.io/repos/dtheodor/flask-sqlalchemy-session/badge.svg)](https://coveralls.io/r/dtheodor/flask-sqlalchemy-session)
[![Documentation Status](https://readthedocs.org/projects/flask-sqlalchemy-session/badge/?version=latest)](http://flask-sqlalchemy-session.readthedocs.org/en/latest/)

Provides an SQLAlchemy scoped session that creates
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ commands = py.test tests/
deps =
pytest>=2.6
py26,py27,pypy,pypy3: mock>=1.0

[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
py.test tests/ --cov flask_sqlalchemy_session
coveralls
deps =
pytest>=2.6
pytest-cov>=1.8.1
mock>=1.0
coveralls