language: dart
sudo: false

os:
  - linux

dart:
  - dev

script:
  - ./tools/travis.sh
  - dart --preview-dart-2 test/test_all.dart
  - dartfmt -n --set-exit-if-changed .
  - dartanalyzer --strong --fatal-warnings --fatal-lints lib/ test/

language: dart
sudo: false

os:
  - linux

dart:
  - dev

script:
  - ./tools/travis.sh
  - dart test/test_all.dart
  - dartfmt -n --set-exit-if-changed .
  - dartanalyzer --strong --fatal-warnings --fatal-lints lib/ test/

Remove --preview-dart-2 as Dart 2 is now enabled by default
Remove --preview-dart-2 as Dart 2 is now enabled by default