From dd1754041bd0c681ebc171ad07d44692d2b8eefe Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 11 Feb 2021 00:38:02 +0100 Subject: [PATCH] updated .cirrus.yml and .travis.yml --- .cirrus.yml | 8 +++----- .travis.yml | 8 ++++---- example/test_driver/integration_test.dart | 1 + scripts/test.sh | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index cb4dd14a..bdca5e90 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -71,11 +71,9 @@ task: #CHANNEL: "dev" #CHANNEL: "beta" #CHANNEL: "stable" -# fix_kvm_script: -# - | -# if [[ $ABI =~ "x86" ]]; then -# sudo chown cirrus:cirrus /dev/kvm -# fi + install_iproute2_script: + - apt-get update + - apt install -y iproute2 install_emulator_script: - sdkmanager "system-images;android-$API;$GOO;$ABI" > /dev/null create_emulator_script: diff --git a/.travis.yml b/.travis.yml index 61e03174..4f623c86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,13 +54,13 @@ jobs: - android-30 - sys-img-x86-android-30 licenses: - - 'android-sdk-preview-license-52d11cd2' + - 'android-sdk-preview-license-.+' - 'android-sdk-license-.+' - 'google-gdk-license-.+' before_install: - - yes | sdkmanager --licenses - - sdkmanager tools > /dev/null - - sdkmanager "system-images;android-30;google_apis;x86" > /dev/null + - yes | sdkmanager --update + - yes | sdkmanager tools + - yes | sdkmanager "system-images;android-30;google_apis;x86" - echo no | avdmanager --verbose create avd --force -n test -k "system-images;android-30;google_apis;x86" - emulator -avd test -verbose -no-window -no-audio & - ./scripts/android-wait-for-emulator.sh diff --git a/example/test_driver/integration_test.dart b/example/test_driver/integration_test.dart index cafd01c0..45ef0082 100644 --- a/example/test_driver/integration_test.dart +++ b/example/test_driver/integration_test.dart @@ -6,6 +6,7 @@ import 'dart:io'; import 'package:flutter_driver/flutter_driver.dart'; Future main() async { + await Future.delayed(Duration(seconds: 1)); final FlutterDriver driver = await FlutterDriver.connect(); final String data = await driver.requestData(null, timeout: const Duration(minutes: 1)); diff --git a/scripts/test.sh b/scripts/test.sh index 947257c2..0c0be891 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -20,7 +20,7 @@ node index.js & flutter clean cd $PROJECT_DIR/example flutter clean -flutter driver --driver=test_driver/integration_test.dart --target=integration_test/webview_flutter_test.dart +flutter driver --driver=test_driver/integration_test.dart --target=integration_test/webview_flutter_test.dart --verbose if [ $? -eq 0 ]; then echo "Integration tests passed successfully."