sudo: required

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.6.0

before_install:
  # - sudo rm /usr/local/bin/docker-compose
  # - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  # - chmod +x docker-compose
  # - sudo mv docker-compose /usr/local/bin
  # - docker ps
  - sudo apt-get update
  - sudo apt-get install -y docker-engine
  - docker-compose build
  - docker-compose up -d postgres

script:
  - docker-compose up test

sudo: required

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.6.0

before_install:
  # - sudo rm /usr/local/bin/docker-compose
  # - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  # - chmod +x docker-compose
  # - sudo mv docker-compose /usr/local/bin
  # - docker ps
  - sudo apt-get update
  - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
  - docker-compose build
  - docker-compose up -d postgres

script:
  - docker-compose up test

Fix conflict on docker-engine install.
Fix conflict on docker-engine install.
