Fix analyze task (#24)

Using `dart_task: dartanalyzer lib test` didn't actually work - looks like Travis just runs the tests instead of the analyzer.

So let's try a custom script instead.
This commit is contained in:
Jakob Andersen 2017-07-11 10:40:44 +02:00 committed by GitHub
parent ed5e8fb43e
commit d0c7d14a4e
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ matrix:
# Wish we could exclude `example` in `analysis_options.yaml` but it seems # Wish we could exclude `example` in `analysis_options.yaml` but it seems
# blocked by https://github.com/dart-lang/sdk/issues/26212 # blocked by https://github.com/dart-lang/sdk/issues/26212
- dart: dev - dart: dev
dart_task: dartanalyzer lib test script:
- dartanalyzer lib test
- for example in example/*; do (cd $example; echo [Analyzing $example]; pub get; dartanalyzer .); done
# Only building master means that we don't run two builds for each pull request. # Only building master means that we don't run two builds for each pull request.
branches: branches: