language: dart sudo: false # Run against the dev channel. dart: - dev # Define test tasks to run. dart_task: - test: --platform vm # Only run one instance of the formatter and the analyzer, rather than running # them against each Dart version. matrix: include: # Wish we could exclude `example` in `analysis_options.yaml` but it seems # blocked by https://github.com/dart-lang/sdk/issues/26212 - dart: dev dart_task: dartfmt script: - dartanalyzer lib test - for example in example/*; do (cd $example; echo [Analyzing $example]; pub get; dartanalyzer .); done - (cd interop; echo [Analyzing interop]; pub get; dartanalyzer .) # Only building master means that we don't run two builds for each pull request. branches: only: [master] os: - linux - osx cache: directories: - $HOME/.pub-cache