blob: 7f58d7755e9859041f181ce473d87d2f350e3528 [file] [log] [blame]
language: dart
dart:
- dev
jobs:
include:
- stage: analyze_and_format
name: "Analyze"
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: "Tests"
os: linux
script: pub run --enable-experiment=non-nullable test
stages:
- analyze_and_format
- test
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
# Incremental pub cache and builds.
cache:
directories:
- $HOME/.pub-cache