updated .cirrus.yml and .travis.yml

This commit is contained in:
Lorenzo Pichilli 2021-02-10 13:19:50 +01:00
parent eb7ad42385
commit f4c61260d5
2 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,4 @@
task: task:
only_if: $CIRRUS_PR == ''
skip: '!changesInclude(".cirrus.yml")'
env: env:
ANDROID_EMULATOR_API_LEVEL: 30 ANDROID_EMULATOR_API_LEVEL: 30
ANDROID_ABI: "google_apis;x86" ANDROID_ABI: "google_apis;x86"
@ -43,10 +41,10 @@ task:
#CHANNEL: "beta" #CHANNEL: "beta"
#CHANNEL: "stable" #CHANNEL: "stable"
install_images_script: install_images_script:
#- mkdir -p .android && touch ~/.android/repositories.cfg - mkdir -p .android && touch ~/.android/repositories.cfg
#- sdkmanager --list #- sdkmanager --list
- sdkmanager "system-images;android-$ANDROID_EMULATOR_API_LEVEL;$ANDROID_ABI" - sdkmanager "system-images;android-$ANDROID_EMULATOR_API_LEVEL;$ANDROID_ABI"
#- (yes || true) | sdkmanager --licenses - (yes || true) | sdkmanager --licenses
create_device_script: 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-$EMULATOR_API_LEVEL;$ANDROID_ABI"
start_emulator_background_script: start_emulator_background_script:

View File

@ -11,26 +11,27 @@ env:
- ANDROID_API=30 - ANDROID_API=30
install: install:
- git clone $FLUTTER_GITHUB -b master --depth 1 - 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 doctor
- $FLUTTER pub get - $FLUTTER pub get
jobs: jobs:
include: include:
- stage: iOS Integration Tests - stage: iOS Integration Tests
os: osx os: osx
osx_image: xcode12.3 osx_image: xcode12.3
before_script: before_script:
- brew install node
- cd ./nodejs_server_test_auth_basic_and_ssl - cd ./nodejs_server_test_auth_basic_and_ssl
- npm install - npm install
- cd .. - cd ..
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
- export HOMEBREW_NO_AUTO_UPDATE=1
- brew install libimobiledevice ideviceinstaller ios-deploy
- brew install cocoapods || echo 'ignore exit(1)'
- brew link --overwrite cocoapods
- xcrun simctl list - xcrun simctl list
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot - xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
script: script: