sdk:
- pubspec
- dev

stages:
- analyze_and_format:
  - analyze: --fatal-infos
  - format:
    sdk:
    - dev
- unit_test:
  - test: --test-randomize-ordering-seed=random --platform vm
    os:
    - linux
  - test: --test-randomize-ordering-seed=random --platform chrome
    os:
    - linux
  # Firefox needs an X server to run.
  - command: xvfb-run -s "-screen 0 1024x768x24"
      dart test --test-randomize-ordering-seed=random --platform firefox
    os:
    - linux
  - command: dart run --define=no_default_http_client=true test/no_default_http_client_test.dart
    os:
    - linux
  - test: --test-randomize-ordering-seed=random -p chrome -c dart2wasm
    sdk: dev
