env:
  DISPLAY: :99.0
  FLAKINESS_DASHBOARD_PASSWORD: ENCRYPTED[b3e207db5d153b543f219d3c3b9123d8321834b783b9e45ac7d380e026ab3a56398bde51b521ac5859e7e45cb95d0992]
  FLAKINESS_DASHBOARD_NAME: Cirrus ${CIRRUS_TASK_NAME}
  FLAKINESS_DASHBOARD_BUILD_URL: https://cirrus-ci.com/task/${CIRRUS_TASK_ID}

task:
  matrix:
    - name: Chromium (node6 + linux)
      container:
        dockerfile: .ci/node6/Dockerfile.linux
      xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
  install_script: npm install --unsafe-perm
  test_script: npm run unit-node6

task:
  matrix:
    - name: Chromium (node8 + linux)
      container:
        dockerfile: .ci/node8/Dockerfile.linux
    - name: Chromium (node10 + linux)
      container:
        dockerfile: .ci/node10/Dockerfile.linux
    - name: Chromium (node12 + linux)
      container:
        dockerfile: .ci/node12/Dockerfile.linux
  xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
  install_script: npm install --unsafe-perm
  lint_script: npm run lint
  coverage_script: npm run coverage
  test_doclint_script: npm run test-doclint
  test_types_script: npm run test-types

task:
  matrix:
    - name: Firefox (node8 + linux)
      container:
        dockerfile: .ci/node8/Dockerfile.linux
      xvfb_start_background_script: Xvfb :99 -ac -screen 0 1024x768x24
  install_script: npm install --unsafe-perm && cd experimental/puppeteer-firefox && npm install --unsafe-perm
  test_script: npm run funit

task:
  osx_instance:
    image: high-sierra-base
  name: Chromium (node8 + macOS)
  env:
    HOMEBREW_NO_AUTO_UPDATE: 1
  node_install_script:
    - brew install node@8
    - brew link --force node@8
  install_script: npm install --unsafe-perm
  lint_script: npm run lint
  coverage_script: npm run coverage
  test_doclint_script: npm run test-doclint
  test_types_script: npm run test-types