machine:
  services:
    - docker
dependencies:
  pre:
    - curl --retry 3 -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > ./docker-compose
    - chmod +x ./docker-compose
  override:
    - ./docker-compose build
database:
  override:
    - echo "skip database setup because the db is a docker container"
test:
  override:
    - ./docker-compose up -d web
    - sleep 1
    - ./docker-compose run test
deployment:
  production:
    branch: master
    commands:
      - ./bin/deploy_prod.sh
      - ruby ./bin/test_prod_deploy.rb

machine:
  services:
    - docker
dependencies:
  pre:
    - curl --retry 3 -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > ./docker-compose
    - chmod +x ./docker-compose
  override:
    - ./docker-compose build
database:
  override:
    - echo "skip database setup because the db is a docker container"
test:
  override:
    - ./docker-compose up -d web
    - sleep 1
    - ./docker-compose run test
deployment:
  production:
    branch: master
    commands:
      - ./bin/deploy_prod.sh
      - sleep 3
      - ruby ./bin/test_prod_deploy.rb

Add some sleep time to ensure app is up
Add some sleep time to ensure app is up
