From 4e7c5c200ca2b8871b88820218c10c5bba1a853b Mon Sep 17 00:00:00 2001 From: Dimitris Theodorou Date: Sun, 31 May 2015 02:56:20 +0200 Subject: [PATCH 1/3] disable travis email notifications --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b946060..33d4be1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,6 @@ install: script: tox branches: only: - - master \ No newline at end of file + - master +notifications: + email: false \ No newline at end of file From 531aeab64af5a54f48dc3b3a47fba9dd9d107422 Mon Sep 17 00:00:00 2001 From: Dimitris Theodorou Date: Sun, 31 May 2015 02:56:38 +0200 Subject: [PATCH 2/3] add tox coverage testenv --- .gitignore | 1 + .travis.yml | 1 + tox.ini | 11 +++++++++++ 3 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 34e6000..6f6405b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ docs/_build __pycache__ .tox .vagrant +.coverage diff --git a/.travis.yml b/.travis.yml index 33d4be1..4342a3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ env: - TOXENV=py34 - TOXENV=pypy - TOXENV=pypy3 + - TOXENV=coverage install: - "pip install tox" # command to run tests diff --git a/tox.ini b/tox.ini index 573cd3c..758c0ce 100644 --- a/tox.ini +++ b/tox.ini @@ -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 \ No newline at end of file From 99cbea29cebed686bce21afc48a1c0683c4a039b Mon Sep 17 00:00:00 2001 From: dtheodor Date: Sun, 31 May 2015 03:02:21 +0200 Subject: [PATCH 3/3] add coveralls badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 19d31c6..d118e17 100644 --- a/README.md +++ b/README.md @@ -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