language: python
sudo: required
python:
  - "2.7"
  - "3.5"
# command to install dependencies
install: 
  - pip install -r requirements.txt
  - python setup.py install
services:
- mongodb
addons:
  apt:
    sources:
    - mongodb-3.2-precise
    packages:
    - mongodb-org
before_script:
  - sleep 15
  - mongo mydb_test --eval 'db.addUser("travis", "test");'
# command to build and run tests
script:
  - mongo --version

language: python
sudo: required
python:
  - "2.7"
  - "3.5"
# command to install dependencies
install: 
  - pip install -r requirements.txt
  - python setup.py install
services:
- mongodb
addons:
  apt:
    sources:
    - mongodb-3.2-precise
    packages:
    - mongodb-org
before_script:
  - sleep 15
  - mongo mydb_test --eval 'db.createUser("travis", "test");'
# command to build and run tests
script:
  - mongo --version

Use 3.x code for creating users
Use 3.x code for creating users
