Skip to content

Commit ad25e9c

Browse files
authored
Adding Shrine to travis script. (#6)
1 parent 434a703 commit ad25e9c

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

shrine/test/main_test.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
void main() {}
1+
// Copyright 2018 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
import 'package:flutter_test/flutter_test.dart';
6+
7+
void main() {
8+
group('Unit tests', () {
9+
test('This test always passes', () {});
10+
});
11+
}

travis_script.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
set -e
22

3-
echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel =="
3+
declare -a PROJECT_NAMES=(
4+
"jsonexample" \
5+
"shrine" \
6+
)
47

5-
pushd jsonexample
6-
../flutter/bin/flutter test
7-
popd
8+
for PROJECT_NAME in "${PROJECT_NAMES[@]}"
9+
do
10+
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
11+
pushd "${PROJECT_NAME}"
12+
../flutter/bin/flutter test
13+
popd
14+
done
815

916
echo "-- Success --"

0 commit comments

Comments
 (0)