mirror of https://github.com/grpc/grpc-dart.git
38 lines
860 B
YAML
38 lines
860 B
YAML
language: dart
|
|
sudo: false
|
|
|
|
# Run against both the dev and channel.
|
|
dart:
|
|
- stable
|
|
- 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
|