forked from RedBrogdon/rebloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis_script.sh
32 lines (25 loc) · 854 Bytes
/
travis_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set -e
flutter/bin/flutter packages get
echo "== Testing rebloc library on Flutter's $FLUTTER_VERSION channel =="
pushd lib
../flutter/bin/flutter analyze
find . | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
popd
pushd test
../flutter/bin/flutter analyze
find . | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
popd
flutter/bin/flutter test
echo "== Testing rebloc example on Flutter's $FLUTTER_VERSION channel =="
pushd example
../flutter/bin/flutter analyze
find lib/. test/. | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
../flutter/bin/flutter test
popd
echo "== Testing rebloc listexample on Flutter's $FLUTTER_VERSION channel =="
pushd listexample
../flutter/bin/flutter analyze
find lib/. test/. | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
../flutter/bin/flutter test
popd
echo "-- Success --"