machine:
  services:
    - redis
dependencies:
  cache_directories:
    - mongodb-linux-x86_64-3.2.4
    - elasticsearch-1.4.3
  pre:
    - if [[ ! -d mongodb-linux-x86_64-3.2.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-3.2.4.tgz && tar xvzf mongodb-linux-x86_64-3.2.4.tgz; fi
    - sudo /etc/init.d/mongodb stop
    - sudo cp mongodb-linux-x86_64-3.2.4/bin/* /usr/bin
    - sudo /etc/init.d/mongodb start
    - if [[ ! -d elasticsearch-1.4.3 ]]; then wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.3.tar.gz && tar xvzf elasticsearch-1.4.3.tar.gz; fi
    - elasticsearch-1.4.3/bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.4.1
    - elasticsearch-1.4.3/bin/elasticsearch: {background: true}
  override:
    - pip install -r requirements/travis.pip
test:
  override:
    - nosetests --immediate --with-coverage udata
  post:
    - coveralls --rcfile=coverage.rc

machine:
  services:
    - redis
dependencies:
  cache_directories:
    - mongodb-linux-x86_64-3.2.4
    - elasticsearch-1.7.3
  pre:
    - if [[ ! -d mongodb-linux-x86_64-3.2.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-3.2.4.tgz && tar xvzf mongodb-linux-x86_64-3.2.4.tgz; fi
    - sudo /etc/init.d/mongodb stop
    - sudo cp mongodb-linux-x86_64-3.2.4/bin/* /usr/bin
    - sudo /etc/init.d/mongodb start
    - if [[ ! -d elasticsearch-1.7.3 ]]; then wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.tar.gz && tar xvzf elasticsearch-1.7.3.tar.gz; fi
    - elasticsearch-1.7.3/bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.7.0
    - elasticsearch-1.7.3/bin/elasticsearch: {background: true}
  override:
    - pip install -r requirements/travis.pip
test:
  override:
    - nosetests --immediate --with-coverage udata
  post:
    - coveralls --rcfile=coverage.rc

Upgrade ES and ICU for CircleCI
Upgrade ES and ICU for CircleCI
