iosWebViewFix/.travis.yml

85 lines
3.1 KiB
YAML

language: dart
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:
- ./scripts/test.sh $(ipconfig getifaddr en0)
cache:
directories:
- $HOME/.pub-cache
include:
- stage: Android Integration Tests
language: android
dist: trusty
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
- ./scripts/test.sh $(ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}')
cache:
directories:
- $HOME/.pub-cache