version: 2
jobs:
  build:
    docker:
      - image: sicz/dockerspec:3.6
    working_directory: ~/docker-dockerspec
    environment:
      - MAKEFLAGS=--no-print-directory
    steps:
      - run:
          name: Set up Environment
          command: |
            curl -sSL https://github.com/SICZ/Mk/archive/master.tar.gz | tar -xzf -
            mv Mk-master ~/Mk
      - checkout
      - setup_remote_docker
      - run:
          name: Remote Docker engine version
          command: |
            docker version
      - run:
          name: Build Docker image
          command: |
            make docker-pull
            make build
      - run:
          name: Run Docker container
          command: |
            make run
            make logs
      - run:
          name: Run tests
          command: |
            env DOCKER_CONTAINER_ID=$(cat .container_id) rspec --format doc

version: 2
jobs:
  build:
    docker:
      - image: sicz/dockerspec:3.6
    working_directory: ~/docker-dockerspec
    environment:
      - MAKEFLAGS=--no-print-directory
    steps:
      - run:
          name: Set up Environment
          command: |
            curl -sSL https://github.com/SICZ/Mk/archive/master.tar.gz | tar -xzf -
            mv Mk-master ~/Mk
      - checkout
      - setup_remote_docker
      - run:
          name: Remote Docker engine version
          command: |
            docker version
      - run:
          name: Build Docker image
          command: |
            make rebuild
      - run:
          name: Run Docker container
          command: |
            make run
            make logs
      - run:
          name: Run tests
          command: |
            env DOCKER_CONTAINER_ID=$(cat .container_id) rspec --format doc

Revert "Use Docker layer caching"
Revert "Use Docker layer caching"

This reverts commit e0c7a37eedd2afe96c8bbb4cf7aa898f916789f5.
