From 5e6f40604f94510532ff39de573cad8931240f69 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 29 Jun 2018 10:03:22 -0700 Subject: [PATCH 1/4] Initial Travis config. --- .travis.yml | 27 +++++++++++++++++++ .../test/{widget_test.dart => main_test.dart} | 2 +- travis_script.sh | 9 +++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .travis.yml rename jsonexample/test/{widget_test.dart => main_test.dart} (74%) create mode 100644 travis_script.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..7b125d7ee1c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +os: + - linux +sudo: false +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libstdc++6 + - fonts-droid +git: + depth: 3 +env: + - FLUTTER_VERSION=beta + - FLUTTER_VERSION=dev +matrix: + allow_failures: + - env: FLUTTER_VERSION=dev +before_script: + - git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION + - ./flutter/bin/flutter doctor + - chmod +x travis_script.sh +script: + - ./travis_script.sh +cache: + directories: + - $HOME/shared/.pub-cache \ No newline at end of file diff --git a/jsonexample/test/widget_test.dart b/jsonexample/test/main_test.dart similarity index 74% rename from jsonexample/test/widget_test.dart rename to jsonexample/test/main_test.dart index df84151d3f3..0fc93b3bef7 100644 --- a/jsonexample/test/widget_test.dart +++ b/jsonexample/test/main_test.dart @@ -5,5 +5,5 @@ import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async {}); + test('This test always passes.', () {}); } diff --git a/travis_script.sh b/travis_script.sh new file mode 100644 index 00000000000..6a9a803f7ea --- /dev/null +++ b/travis_script.sh @@ -0,0 +1,9 @@ +set -e + +echo "== Testing jsonexample on Flutter's $FLUTTER_VERSION channel ==" + +pushd jsonexample +../flutter/bin/flutter test +popd + +echo "-- Success --" \ No newline at end of file From 70e15bbaa468d6f4ce32e9f404fcdab671ac3291 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 29 Jun 2018 10:05:17 -0700 Subject: [PATCH 2/4] Newline. --- travis_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis_script.sh b/travis_script.sh index 6a9a803f7ea..c945143461c 100644 --- a/travis_script.sh +++ b/travis_script.sh @@ -6,4 +6,4 @@ pushd jsonexample ../flutter/bin/flutter test popd -echo "-- Success --" \ No newline at end of file +echo "-- Success --" From 080b60cc3f484015fb46145f56ff3610283a3414 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 29 Jun 2018 10:44:00 -0700 Subject: [PATCH 3/4] Triggering Travis. --- travis_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis_script.sh b/travis_script.sh index c945143461c..52431fa1d94 100644 --- a/travis_script.sh +++ b/travis_script.sh @@ -1,6 +1,6 @@ set -e -echo "== Testing jsonexample on Flutter's $FLUTTER_VERSION channel ==" +echo "== Testing 'jsonexample' on Flutter's $FLUTTER_VERSION channel ==" pushd jsonexample ../flutter/bin/flutter test From d9869b803c3e1f31ad348cf5f47f01d0fd7d85c5 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 29 Jun 2018 15:40:02 -0700 Subject: [PATCH 4/4] Newline. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7b125d7ee1c..188f839f2e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,4 +24,4 @@ script: - ./travis_script.sh cache: directories: - - $HOME/shared/.pub-cache \ No newline at end of file + - $HOME/shared/.pub-cache