language: python

before_install:
  - if [ "$DOCKER" = "1" ]; then docker build -t servo etc/ci/; fi

script:
  - if [ "$DOCKER" = "0" ]; then sh -c "$CMD"; fi
  - if [ "$DOCKER" = "1" ]; then docker run -tv `pwd`:/build servo sh -c "$CMD"; fi

matrix:
  fast_finish: true
  include:
    - sudo: false
      env:
      - CMD="./mach test-tidy"
      - DOCKER=0
    - sudo: 9000
      services:
      - docker
      env:
      - CMD="./mach build -d --verbose"
      - DOCKER=1

branches:
  only:
    - master

language: python

before_install:
  - if [ "$DOCKER" = "1" ]; then docker build -t servo etc/ci/; fi

script:
  - if [ "$DOCKER" = "0" ]; then sh -c "$CMD"; fi
  - if [ "$DOCKER" = "1" ]; then docker run -tv `pwd`:/build servo sh -c "$CMD"; fi

matrix:
  fast_finish: true
  include:
    - sudo: false
      env:
        - CMD="./mach test-tidy"
        - DOCKER=0
    - sudo: 9000
      services:
        - docker
      env:
        - CMD="./mach build -d --verbose"
        - DOCKER=1

branches:
  only:
    - master

Use consistent indentation in YAML file
Use consistent indentation in YAML file
