From 7d83903e75be3f0ab59f52d6649f7bd8336ae880 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Mon, 28 Dec 2015 11:34:37 -0800 Subject: [PATCH] Allow travis/test.sh to be run locally (not on travis) This helps people check that all the tests will pass before they send a PR. --- travis/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/travis/test.sh b/travis/test.sh index fa40680e45..7ba9ae0ec0 100755 --- a/travis/test.sh +++ b/travis/test.sh @@ -18,8 +18,8 @@ flutter analyze --flutter-repo --no-current-directory --no-current-package --con (cd examples/stocks; flutter test) -if [ $TRAVIS_PULL_REQUEST = "false" ]; then - if [ $TRAVIS_BRANCH = "master" ]; then +if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then + if [ "$TRAVIS_BRANCH" = "master" ]; then pub global activate dartdoc 0.8.4 cat packages/flutter/doc/styles.html doc/_analytics.html > /tmp/_header.html