blob: 0b968992418215dc0d361682309020d994201aff [file] [log] [blame]
language: dart
dart:
- dev
jobs:
include:
- stage: analyze_and_format
name: "Analyze"
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: "Vm 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