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.
This commit is contained in:
Ian Hickson
2015-12-28 11:34:37 -08:00
parent c812628806
commit 7d83903e75

View File

@@ -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