updated .cirrus.yml and .travis.yml

This commit is contained in:
Lorenzo Pichilli 2021-02-11 00:38:02 +01:00
parent f94e489ced
commit dd1754041b
4 changed files with 9 additions and 10 deletions

View File

@ -71,11 +71,9 @@ task:
#CHANNEL: "dev" #CHANNEL: "dev"
#CHANNEL: "beta" #CHANNEL: "beta"
#CHANNEL: "stable" #CHANNEL: "stable"
# fix_kvm_script: install_iproute2_script:
# - | - apt-get update
# if [[ $ABI =~ "x86" ]]; then - apt install -y iproute2
# sudo chown cirrus:cirrus /dev/kvm
# fi
install_emulator_script: install_emulator_script:
- sdkmanager "system-images;android-$API;$GOO;$ABI" > /dev/null - sdkmanager "system-images;android-$API;$GOO;$ABI" > /dev/null
create_emulator_script: create_emulator_script:

View File

@ -54,13 +54,13 @@ jobs:
- android-30 - android-30
- sys-img-x86-android-30 - sys-img-x86-android-30
licenses: licenses:
- 'android-sdk-preview-license-52d11cd2' - 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+' - 'android-sdk-license-.+'
- 'google-gdk-license-.+' - 'google-gdk-license-.+'
before_install: before_install:
- yes | sdkmanager --licenses - yes | sdkmanager --update
- sdkmanager tools > /dev/null - yes | sdkmanager tools
- sdkmanager "system-images;android-30;google_apis;x86" > /dev/null - 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" - 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 & - emulator -avd test -verbose -no-window -no-audio &
- ./scripts/android-wait-for-emulator.sh - ./scripts/android-wait-for-emulator.sh

View File

@ -6,6 +6,7 @@ import 'dart:io';
import 'package:flutter_driver/flutter_driver.dart'; import 'package:flutter_driver/flutter_driver.dart';
Future<void> main() async { Future<void> main() async {
await Future.delayed(Duration(seconds: 1));
final FlutterDriver driver = await FlutterDriver.connect(); final FlutterDriver driver = await FlutterDriver.connect();
final String data = final String data =
await driver.requestData(null, timeout: const Duration(minutes: 1)); await driver.requestData(null, timeout: const Duration(minutes: 1));

View File

@ -20,7 +20,7 @@ node index.js &
flutter clean flutter clean
cd $PROJECT_DIR/example cd $PROJECT_DIR/example
flutter clean 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 if [ $? -eq 0 ]; then
echo "Integration tests passed successfully." echo "Integration tests passed successfully."