Permalink
Browse files

Travis build matrix for both including and excluding pymongo

  • Loading branch information...
1 parent e7ab32c commit 251801904aa69d786abe54249fb3f35afa19e826 @vmalloc vmalloc committed Jul 6, 2013
Showing with 10 additions and 1 deletion.
  1. +4 −1 .travis.yml
  2. +6 −0 setup.py
View
@@ -4,11 +4,14 @@ python:
- "2.7"
- "3.2"
- "3.3"
+env:
+ - INSTALL_PYMONGO=true INSTALL_PYEXECJS=true
+ - INSTALL_PYMONGO=false INSTALL_PYEXECJS=false
services:
- mongodb
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- python setup.py develop
- - pip install --use-mirrors pyexecjs nose pymongo
+ - pip install --use-mirrors nose
# command to run tests, e.g. python setup.py test
script: nosetests -w tests
View
@@ -10,6 +10,12 @@
if platform.python_version() < '2.7':
install_requires.append('unittest2')
+if os.environ.get("INSTALL_PYMONGO", "false") == "true":
+ install_requires.append("pymongo")
+if os.environ.get("INSTALL_PYEXECJS", "false") == "true":
+ install_requires.append("pyexecjs")
+
+
setup(name="mongomock",
classifiers = [
"Programming Language :: Python :: 2.7",

0 comments on commit 2518019

Please sign in to comment.