blob: 92245df0527c7c01a9a1ed0305ce0e5f3816fd20 [file] [log] [blame]
language: dart
sudo: false
dart:
- dev
dart_task:
- test: --preset travis --total-shards 5 --shard-index 0
- test: --preset travis --total-shards 5 --shard-index 1
- test: --preset travis --total-shards 5 --shard-index 2
- test: --preset travis --total-shards 5 --shard-index 3
- test: --preset travis --total-shards 5 --shard-index 4
- dartfmt
- dartanalyzer
# Create a snapshot to improve startup time. Tests will automatically use this
# snapshot if it's available.
before_script:
- dart --snapshot=bin/pub.dart.snapshot.dart2 bin/pub.dart
# Only building these branches means that we don't run two builds for each pull
# request.
branches:
only: [master, travis, /^feature\./]
cache:
directories:
- $HOME/.pub-cache