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: "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:

View File

@ -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

View File

@ -6,6 +6,7 @@ import 'dart:io';
import 'package:flutter_driver/flutter_driver.dart';
Future<void> 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));

View File

@ -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."