From 98e10ff13b5c67dae74516c4544bdb6aaf0405f3 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 27 Jul 2018 10:10:53 -0700 Subject: [PATCH] Adding Shrine to travis script. --- shrine/test/main_test.dart | 12 +++++++++++- travis_script.sh | 15 +++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/shrine/test/main_test.dart b/shrine/test/main_test.dart index ab73b3a234a..f8fc729dbf6 100644 --- a/shrine/test/main_test.dart +++ b/shrine/test/main_test.dart @@ -1 +1,11 @@ -void main() {} +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; + +void main() { + group('Unit tests', () { + test('This test always passes', () {}); + }); +} diff --git a/travis_script.sh b/travis_script.sh index 52431fa1d94..a846252761d 100644 --- a/travis_script.sh +++ b/travis_script.sh @@ -1,9 +1,16 @@ set -e -echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel ==" +declare -a PROJECT_NAMES=( + "jsonexample" \ + "shrine" \ +) -pushd jsonexample -../flutter/bin/flutter test -popd +for PROJECT_NAME in "${PROJECT_NAMES[@]}" +do + echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel ==" + pushd "${PROJECT_NAME}" + ../flutter/bin/flutter test + popd +done echo "-- Success --"