Skip to content

Commit 2fc5c2c

Browse files
committed
Add code coverage, code quality checks after travis build.
Add build and coverage badges.
1 parent 426690f commit 2fc5c2c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
global:
1414
- DB=postgresql
1515
- PGHOST=localhost
16-
- PGDATABASE=pgdabble_testing
16+
- PGDATABASE=postpy_testing
1717
- PGUSER=postgres
1818
cache:
1919
directories:
@@ -25,8 +25,12 @@ install:
2525
- pip install wheel
2626
- pip install -r requirements.txt
2727
- pip install -r requirements-test.txt
28+
- pip install codecov
2829
- python setup.py install
2930

3031
script:
3132
- python create_db.py
32-
- py.test tests -s
33+
- py.test tests -s --cov
34+
35+
after_success:
36+
- codecov

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[![Build Status](https://travis-ci.org/portfoliome/postpy.svg?branch=master)](https://travis-ci.com/portfoliome/postpy)
2+
[![codecov.io](http://codecov.io/github/portfoliome/postpy/coverage.svg?branch=master)](http://codecov.io/github/portfoliome/postpy?branch=master)
3+
[![Code Health](https://landscape.io/github/portfoliome/postpy/master/landscape.svg?style=flat)](https://landscape.io/github/portfoliome/postpy/master)
4+
15
# postpy
26
Postgresql utilities for ETL and data analysis.
37

tests/test_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ def test_split_qualified_name(self):
147147
self.assertEqual(expected, result)
148148

149149

150-
151-
152150
class TestCreateTableEvent(PostgreSQLFixture, unittest.TestCase):
153151
def setUp(self):
154152
self.tablename = 'create_table_event'

0 commit comments

Comments
 (0)