Enable travis (#15)

* Create .travis.yml

Initial travis config, based on https://github.com/dart-lang/source_gen/blob/master/.travis.yml

* Update .travis.yml

* Fix filename

* Review feedback
This commit is contained in:
Michael Thomsen 2017-06-29 19:38:45 +02:00 committed by GitHub
parent aee8e4a3c3
commit b0c284578a
1 changed files with 32 additions and 0 deletions

32
.travis.yml Normal file
View File

@ -0,0 +1,32 @@
language: dart
sudo: false
# Run against dev and stable channels.
dart:
- dev
- stable
# Define test tasks to run.
dart_task:
- test: --platform vm
# Only run one instance of the formatter and the analyzer, rather than running
# them against each Dart version.
matrix:
include:
- dart: stable
dart_task: dartfmt
- dart: dev
dart_task: dartanalyzer
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
os:
- linux
- osx
cache:
directories:
- $HOME/.pub-cache