language: dart branches: only: - master jobs: include: - stage: iOS Integration Tests os: osx osx_image: xcode12.3 install: - 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 - export FLUTTER_HOME=$HOME/flutter - export PATH=$HOME/flutter:$HOME/flutter/bin/:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH - 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 - cd $TRAVIS_BUILD_DIR/nodejs_server_test_auth_basic_and_ssl - npm install - cd $TRAVIS_BUILD_DIR before_script: - 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 script: - flutter channel master - ./scripts/test.sh $(ipconfig getifaddr en0) cache: directories: - $HOME/.pub-cache include: - stage: Android Integration Tests language: android dist: trusty addons: apt: packages: - iproute2 android: components: - tools - platform-tools - build-tools-30.0.0 - android-30 - sys-img-x86-android-30 licenses: - 'android-sdk-preview-license-52d11cd2' - 'android-sdk-license-.+' - 'google-gdk-license-.+' before_install: - sdkmanager tools - sdkmanager "system-images;android-30;google_apis;x86" > /dev/null - 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 install: - export FLUTTER_HOME=$HOME/flutter - export PATH=$HOME/flutter:$HOME/flutter/bin/:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH - 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 - cd $TRAVIS_BUILD_DIR - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash - export NVM_DIR="$HOME/.nvm" - source "$NVM_DIR/nvm.sh" # This loads nvm - nvm install node - nvm use node - cd $TRAVIS_BUILD_DIR/nodejs_server_test_auth_basic_and_ssl - npm install - cd $TRAVIS_BUILD_DIR script: - export PATH="$PATH":"$HOME/.pub-cache/bin" - export NVM_DIR="$HOME/.nvm" - source "$NVM_DIR/nvm.sh" # This loads nvm - nvm use node - flutter channel master - ./scripts/test.sh $(ip route get 1 | awk '{print $NF;exit}') cache: directories: - $HOME/.pub-cache