changeset 5060:de420f34d696

Add codecov support to TravisCI There was some recent discussion on the mailing list about code coverage. It seems like a good idea to add codecov support so anyone can see the current state of code coverage and track how coverage changes over time.
author John Kristensen <john@jerrykan.com>
date Wed, 04 May 2016 21:52:49 +1000
parents 80b87ff8057b
children d7a4eeb7f843
files .travis.yml
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.travis.yml	Wed May 04 21:53:21 2016 +1000
+++ b/.travis.yml	Wed May 04 21:52:49 2016 +1000
@@ -25,6 +25,7 @@
 
 install:
   - pip install MySQL-python psycopg2 pytz pyme
+  - pip install pytest-cov codecov
 
 before_script:
   # set up mysql database
@@ -38,4 +39,7 @@
   - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
 
 script:
-  python run_tests.py -v
+  - py.test -v test/ --cov=roundup
+
+after_success:
+  - codecov

Roundup Issue Tracker: http://roundup-tracker.org/