Skip to content

Commit 3d946fd

Browse files
committed
chore: Add coverage report.
1 parent 6c5184e commit 3d946fd

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ python:
77
- "3.6"
88
install:
99
pip install -r requirements.txt
10-
script: pytest
10+
script: make test
11+
after_success:
12+
- coveralls
1113

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@ clean:
22
@rm -f .coverage 2> /dev/null
33
@rm -rf .eggs 2> /dev/null
44
@rm -rf .cache 2> /dev/null
5+
@rm -rf build 2> /dev/null
6+
@rm -rf dist 2> /dev/null
7+
@rm -rf graphene_mongo.egg-info 2> /dev/null
58
@find . -name "*.pyc" -delete
69
@find . -name "__pycache__" -delete
710

11+
test: clean
12+
py.test --cov=graphene_mongo
13+
814
register-pypitest:
915
python setup.py register -r pypitest
1016

11-
deploy-pypitest:
17+
deploy-pypitest: clean
1218
python setup.py sdist upload -r pypitest
1319

1420
register:
1521
python setup.py register -r pypi
1622

17-
deploy:
23+
deploy: clean
1824
python setup.py sdist upload -r pypi
1925

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/abawchen/graphene-mongo.svg?branch=master)](https://travis-ci.org/abawchen/graphene-mongo) [![Coverage Status](https://coveralls.io/repos/github/abawchen/graphene-mongo/badge.svg?branch=master)](https://coveralls.io/github/abawchen/graphene-mongo?branch=master)
2+
13
# Graphene-Mongo
24

35
A [Mongoengine](https://mongoengine-odm.readthedocs.io/) integration for [Graphene](http://graphene-python.org/).

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
coveralls==1.2.0
12
graphene==2.0.1
23
iso8601==0.1.12
34
mongoengine==0.15.0
45
mongomock==3.8.0
56
pytest==3.3.2
7+
pytest-cov==2.5.1
68
singledispatch==3.4.0.3
79

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
'Intended Audience :: Developers',
2020
'Topic :: Software Development :: Libraries',
2121
'Programming Language :: Python :: 2.7',
22-
'Programming Language :: Python :: 3',
2322
'Programming Language :: Python :: 3.3',
2423
'Programming Language :: Python :: 3.4',
2524
'Programming Language :: Python :: 3.5',
25+
'Programming Language :: Python :: 3.6',
2626
'Programming Language :: Python :: Implementation :: PyPy',
2727
],
2828

0 commit comments

Comments
 (0)