From 6397442258f43397b4e539b41c8b8cc535805e4c Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 5 Apr 2017 17:04:01 -0700 Subject: [PATCH] move to new Dart task model on travis --- .travis.yml | 10 ++++++++-- tool/travis.sh | 22 ---------------------- 2 files changed, 8 insertions(+), 24 deletions(-) delete mode 100755 tool/travis.sh diff --git a/.travis.yml b/.travis.yml index 4d2280d7..abf77dd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,14 @@ sudo: false dart: - stable - dev - - 1.22.0 + - 1.22.1 - 1.21.1 - 1.20.1 - 1.19.1 -script: tool/travis.sh +dart_task: + - test: -p vm + - dartfmt + - dartanalyzer +cache: + directories: + - $HOME/.pub-cache diff --git a/tool/travis.sh b/tool/travis.sh deleted file mode 100755 index 924c1023..00000000 --- a/tool/travis.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Fast fail the script on failures. -set -e - -# Analyze sources. Add --fatal-hints, --fatal-warnings, --fatal-lints -# as you see fit. -dartanalyzer lib/ test/ - -# Run tests. -pub run test - -# Assert that code is formatted. -pub global activate dart_style -dirty_code=$(pub global run dart_style:format --dry-run lib/ test/ example/ benchmark/) -if [[ -n "$dirty_code" ]]; then - echo Unformatted files: - echo "$dirty_code" | sed 's/^/ /' - exit 1 -else - echo All Dart source files are formatted. -fi