Skip to content

Commit 0840c70

Browse files
authored
Merge pull request #2 from abawchen/chore-travis-ci
Chore travis ci
2 parents 85e0da4 + 3d946fd commit 0840c70

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.cache/
22
.eggs/
3+
build/
34
dist/
45
graphene_mongo.egg-info/
56
*.pyc

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.3"
5+
- "3.4"
6+
- "3.5"
7+
- "3.6"
8+
install:
9+
pip install -r requirements.txt
10+
script: make test
11+
after_success:
12+
- coveralls
13+

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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
coveralls==1.2.0
2+
graphene==2.0.1
3+
iso8601==0.1.12
4+
mongoengine==0.15.0
5+
mongomock==3.8.0
6+
pytest==3.3.2
7+
pytest-cov==2.5.1
8+
singledispatch==3.4.0.3
9+

setup.py

Lines changed: 2 additions & 2 deletions
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

@@ -41,7 +41,7 @@
4141
setup_requires=['pytest-runner'],
4242
tests_require=[
4343
'pytest>=3.3.2',
44-
'mongomock>=3.8.0'
44+
'mongomock',
4545
'mock'
4646
],
4747
test_suite="graphene_mongo.tests",

0 commit comments

Comments
 (0)