blob: 95f19ae8a4d9251195b8585cd91fc97618cdf594 [file] [log] [blame]
language: dart
dart:
- preview/raw/2.10.0-0.2-dev
jobs:
include:
- stage: analyze_and_format
name: "Analyze test/"
dart: preview/raw/2.10.0-0.2-dev
os: linux
script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos .
- stage: analyze_and_format
name: "Format"
dart: preview/raw/2.10.0-0.2-dev
os: linux
script: dartfmt -n --set-exit-if-changed .
- stage: test
name: "Vm Tests"
dart: preview/raw/2.10.0-0.2-dev
os: linux
script: pub run --enable-experiment=non-nullable test -p vm
- stage: test
name: "Web Tests"
dart: preview/raw/2.10.0-0.2-dev
os: linux
script: pub run --enable-experiment=non-nullable test -p chrome
stages:
- analyze_and_format
- test
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
cache:
directories:
- $HOME/.pub-cache