blob: 074faa54b0cc2d5fd2b13dfd5703e5e25f49fe2f [file] [log] [blame]
language: dart
dart:
- dev
jobs:
include:
- stage: analyze_and_format
name: "Analyzer"
os: linux
script: dartanalyzer --fatal-warnings --fatal-infos .
- stage: analyze_and_format
name: "Format"
os: linux
script: dartfmt -n --set-exit-if-changed .
- stage: test
name: "Sound null safety tests"
os: linux
# https://github.com/dart-lang/sdk/issues/43243
script: pub run --enable-experiment=non-nullable test -p vm
- stage: test
name: "Weak null safety tests"
os: linux
script: pub run test -p vm
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