language: dart
sudo: false
dart:
  - stable
  - dev
dart_task:
  - test: -p vm
  - dartanalyzer

matrix:
  include:
  - dart: dev
    dart_task: dartfmt

# Only building master means that we don't run two builds for each pull request.
branches:
  only: [master]

cache:
  directories:
    - $HOME/.pub-cache
