language: python
python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4

env:
  - DB=mongodb
  - DB=mysql
  - DB=redis-server

before_script:
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS testdb;'; fi"

services:
  - mongodb
  - redis-server

install:
  - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
  - if [ $TRAVIS_PYTHON_VERSION == '2.6' ] || [ $TRAVIS_PYTHON_VERSION == '2.7' ]; then pip install python-memcached; else pip install python3-memcached; fi
  - pip install -r requirements.txt --use-mirrors
script: make test

language: python
python:
  - 2.6
  - 2.7
  - 3.3
  - 3.4

env:
  - DB=mongodb
  - DB=mysql
  - DB=redis-server

before_script:
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS testdb;'; fi"

services:
  - mongodb
  - redis-server

install:
  - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
  - if [ $TRAVIS_PYTHON_VERSION == '2.6' ] || [ $TRAVIS_PYTHON_VERSION == '2.7' ]; then pip install python-memcached; else pip install python3-memcached; fi
  - pip install -r requirements.txt --use-mirrors
script: make test

Remove Python 3.2 from list of versions to test against
Remove Python 3.2 from list of versions to test against
