version: 2
jobs:
  build:
    working_directory: ~/dmd
    docker:
      - image: cimg/base:current-20.04
    parallelism: 1
    steps:
      - checkout
      - run:
          command: ./.circleci/run.sh install-deps
          name: Install dependencies
      - run:
          # needs to be a separate step, s.t. `run.sh` gets updated too
          command: ./.circleci/run.sh setup-repos
          name: Merge with upstream + clone DRuntime & Phobos
      - run:
          command: ./.circleci/run.sh all
          name: Run all
workflows:
  version: 2
  all:
    jobs:
      - build
