iosWebViewFix/.travis.yml

95 lines
3.2 KiB
YAML
Raw Normal View History

2021-02-10 12:09:51 +00:00
language: dart
2021-02-10 16:58:58 +00:00
branches:
only:
- master
2021-02-10 12:09:51 +00:00
jobs:
include:
- stage: iOS Integration Tests
os: osx
osx_image: xcode12.3
2021-02-10 15:06:17 +00:00
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
2021-02-10 14:01:40 +00:00
- cd $TRAVIS_BUILD_DIR/nodejs_server_test_auth_basic_and_ssl
2021-02-10 12:09:51 +00:00
- npm install
2021-02-10 14:01:40 +00:00
- cd $TRAVIS_BUILD_DIR
2021-02-10 15:06:17 +00:00
before_script:
2021-02-10 12:09:51 +00:00
- 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:
2021-02-10 16:58:58 +00:00
- flutter channel master
2021-02-10 15:06:17 +00:00
- ./scripts/test.sh $(ipconfig getifaddr en0)
cache:
directories:
- $HOME/.pub-cache
include:
- stage: Android Integration Tests
language: android
dist: trusty
2021-02-10 16:58:58 +00:00
addons:
apt:
packages:
- iproute2
2021-02-10 15:06:17 +00:00
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
2021-02-10 15:06:17 +00:00
- 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
2021-02-10 16:58:58 +00:00
- flutter channel master
- ./scripts/test.sh $(ip route get 1 | awk '{print $NF;exit}')
2021-02-10 15:06:17 +00:00
cache:
directories:
- $HOME/.pub-cache