machine:
  services:
    - docker
dependencies:
  post:
    - docker version
    - gem install rubocop
test:
  pre:
    - rubocop
    - ./build.sh
  override:
    - ./test.sh
deployment:
  docker:
    branch: master
    commands:
      - ./deploy.sh

machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh |sudo bash -s -- 1.10.0
  services:
    - docker
dependencies:
  post:
    - sudo curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose
    - docker version
    - docker-compose version
    - gem install rubocop
test:
  pre:
    - rubocop
    - ./build.sh
  override:
    - ./test.sh
deployment:
  docker:
    branch: master
    commands:
      - ./deploy.sh

Use latest docker and docker-compose on CI
Use latest docker and docker-compose on CI
