language: php
php:
  - 5.6
  - 5.5
  - 5.4
  - 5.3

services:
  - mongodb
  - redis

install:
  - composer install

before_script:
  - echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - mkdir /tmp/mongodb-alt
  - mongod --port 29017 --dbpath /tmp/mongodb-alt --fork --logpath /tmp/mongodb-alt.log
  - sleep 15

env: TRIPOD_DATASOURCE_RS2_CONFIG='{"type":"mongo","connection":"mongo:\/\/127.0.0.1:29017"}'

script: ant
language: php
php:
  - 5.6
  - 5.5
  - 5.4
  - 5.3

services:
  - mongodb
  - redis

install:
  - composer install

before_script:
  - echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - mkdir /tmp/mongodb-alt
  - mongod --port 29017 --dbpath /tmp/mongodb-alt --fork --logpath /tmp/mongodb-alt.log
  - sleep 15

env: TRIPOD_DATASOURCE_RS2_CONFIG='{"type":"mongo","connection":"mongo:\/\/localhost:29017"}'

script: ant
Use localhost rather than 127.0.0.1
Use localhost rather than 127.0.0.1
