blob: cb4fbf9205decfabe4c5d37ac15c6e2c3f48d3a1 [file] [log] [blame]
language: dart
dart:
- dev
jobs:
include:
- stage: analyze_and_format
name: "Analyze lib/ (no experiment flag)"
os: linux
script: dartanalyzer --fatal-warnings --fatal-infos lib/
- stage: analyze_and_format
name: "Analyze (with experiment flag)"
os: linux
script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos .
- stage: analyze_and_format
name: "Format"
os: linux
script: dartfmt -n --set-exit-if-changed .
- stage: test
name: "Vm Tests"
os: linux
script: pub run --enable-experiment=non-nullable test -p vm
- stage: test
name: "Web Tests"
os: linux
script: pub run --enable-experiment=non-nullable test -p chrome
branches:
only: [master]
cache:
directories:
- $HOME/.pub-cache