From 1312c3fcecbf3c2b1c8e9534cafc34de9af3092c Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 19 Jul 2017 09:42:11 -0700 Subject: [PATCH] Fix travis (#20) --- .travis.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index e7ceabac3b294..1a1ea93f0cf1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,15 +5,20 @@ dart: - stable - 1.22.1 - 1.21.1 -cache: - directories: - - $HOME/.pub-cache + dart_task: - test: --platform vm - dartanalyzer + matrix: include: - # Only validate formatting using the dev release - # Formatted with 1.23.0-dev.10.0 which has (good) changes since 1.22.1 - - dart: dev - dart_task: dartfmt + - dart: stable + dart_task: dartfmt + +# Only building master means that we don't run two builds for each pull request. +branches: + only: [master] + +cache: + directories: + - $HOME/.pub-cache