Skip to content

Commit 0b9d4a2

Browse files
author
Saurabh Kumar
committed
chore(): add coverage support
1 parent d940a45 commit 0b9d4a2

6 files changed

Lines changed: 19 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ build/
44
dist/
55
.env
66
__pycache__
7+
.coverage
8+
.DS_Store

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ language: python
22
python:
33
- '2.7'
44
- '3.3'
5+
- '3.4'
56
- pypy
67
install:
8+
- pip install python-coveralls
79
- pip install -q -r requirements.txt
810
- pip install --editable .
911
before_script: flake8
10-
script: py.test
12+
script:
13+
- coverage run --source=dotenv.py --omit='*tests*' -m py.test tests/ -v --tb=native
14+
- coverage report
15+
after_script:
16+
- coveralls
1117
deploy:
1218
provider: pypi
1319
user: 'theskumar'

dotenv.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
14
import os
25
import warnings
36
from collections import OrderedDict

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ flake8>=2.2.3
22
pytest>=2.6.2
33
sh>=1.09
44
bumpversion
5+
coverage==3.7.1

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
14
from setuptools import setup
25

36
setup(

tests/test_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
14
from os.path import dirname, join
25

36
import sh

0 commit comments

Comments
 (0)