Skip to content

Commit 3a8d116

Browse files
committed
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.
1 parent e0bd9d5 commit 3a8d116

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ before_install:
2525

2626
install:
2727
- pip install MySQL-python psycopg2 pytz pyme
28+
- pip install pytest-cov codecov
2829

2930
before_script:
3031
# set up mysql database
@@ -38,4 +39,7 @@ before_script:
3839
- sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
3940

4041
script:
41-
python run_tests.py -v
42+
- py.test -v test/ --cov=roundup
43+
44+
after_success:
45+
- codecov

0 commit comments

Comments
 (0)