From d4be059fbbd4d0bd9a8455baa336805220395417 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Wed, 10 Feb 2021 13:30:51 +0100 Subject: [PATCH] updated .cirrus.yml and .travis.yml --- .cirrus.yml | 4 ++-- .travis.yml | 28 ++++++++++++---------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 2c963e51..881f5a72 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -46,9 +46,9 @@ task: - sdkmanager "system-images;android-$ANDROID_EMULATOR_API_LEVEL;$ANDROID_ABI" - (yes || true) | sdkmanager --licenses create_device_script: - echo no | avdmanager create avd --force -n test -k "system-images;android-$EMULATOR_API_LEVEL;$ANDROID_ABI" + echo no | avdmanager create avd --force -n test -k "system-images;android-$ANDROID_EMULATOR_API_LEVEL;$ANDROID_ABI" start_emulator_background_script: - $ANDROID_SDK_ROOT/emulator/emulator-headless -VERBOSE -avd TEST -no-audio -no-window + $ANDROID_SDK_ROOT/emulator/emulator-headless -verbose -avd test -no-audio -no-window pub_cache: folder: ~/.pub-cache wait_for_emulator_script: diff --git a/.travis.yml b/.travis.yml index 5ea351b8..e53162d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,23 @@ language: dart -env: - global: - - DARTSDK=./flutter/bin/cache/dart-sdk/bin - - DARTFMT=$DARTSDK/dartfmt - - FLUTTER=./flutter/bin/flutter - - FLUTTER_UP=../flutter/bin/flutter - - FLUTTER_GITHUB=https://github.com/flutter/flutter.git - - PACKAGES=packages - - ANDROID_API=30 - install: + - source ~/.zprofile - export HOMEBREW_NO_AUTO_UPDATE=1 - brew install node - brew install libimobiledevice ideviceinstaller ios-deploy - brew install cocoapods || echo 'ignore exit(1)' - brew link --overwrite cocoapods - - git clone $FLUTTER_GITHUB -b stable --depth 1 - - $FLUTTER upgrade - - $FLUTTER channel master - - $FLUTTER upgrade - - $FLUTTER doctor - - $FLUTTER pub get + - echo 'export FLUTTER_HOME=$HOME/flutter' >> ~/.zprofile + - echo 'export PATH=$HOME/flutter:$HOME/flutter/bin/:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH' >> ~/.zprofile + - source ~/.zprofile + - git clone https://github.com/flutter/flutter.git $FLUTTER_HOME + - cd $FLUTTER_HOME + - git checkout beta + - git checkout stable + - flutter doctor + - flutter channel master + - flutter upgrade + - flutter doctor jobs: include: