2021-02-10 02:20:09 +00:00
|
|
|
task:
|
|
|
|
# Xcode 12 task
|
|
|
|
osx_instance:
|
|
|
|
image: big-sur-xcode-12.4
|
|
|
|
upgrade_script:
|
|
|
|
- brew install node
|
|
|
|
- cd ./nodejs_server_test_auth_basic_and_ssl
|
|
|
|
- npm install
|
|
|
|
- cd ..
|
|
|
|
- sudo gem install cocoapods
|
|
|
|
#- flutter channel stable
|
|
|
|
#- flutter upgrade
|
2021-02-10 03:14:58 +00:00
|
|
|
#- flutter channel dev
|
|
|
|
#- flutter upgrade
|
2021-02-10 02:20:09 +00:00
|
|
|
- flutter channel master
|
|
|
|
- flutter upgrade
|
|
|
|
- git fetch origin master
|
|
|
|
submodules_script:
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
|
|
|
matrix:
|
2021-02-10 08:41:09 +00:00
|
|
|
- name: test_plugin_ios
|
2021-02-10 02:20:09 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
CHANNEL: "master"
|
2021-02-10 03:14:58 +00:00
|
|
|
#CHANNEL: "dev"
|
2021-02-10 02:20:09 +00:00
|
|
|
#CHANNEL: "stable"
|
|
|
|
script:
|
2021-02-10 08:41:09 +00:00
|
|
|
- xcrun simctl list
|
|
|
|
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-4 | xargs xcrun simctl boot
|
2021-02-10 02:20:09 +00:00
|
|
|
- flutter channel $CHANNEL
|
|
|
|
- ./test.sh $(ipconfig getifaddr en0)
|
2021-02-10 08:41:09 +00:00
|
|
|
- name: test_plugin_android
|
2021-02-10 08:41:56 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
CHANNEL: "master"
|
|
|
|
#CHANNEL: "dev"
|
|
|
|
#CHANNEL: "stable"
|
|
|
|
script:
|
2021-02-10 08:54:54 +00:00
|
|
|
- mkdir -p .android && touch ~/.android/repositories.cfg
|
2021-02-10 08:50:11 +00:00
|
|
|
- yes | sdkmanager --licenses
|
2021-02-10 08:41:56 +00:00
|
|
|
- echo no | avdmanager create avd --force -n Flutter-Android -k "system-images;android-30;default;armeabi-v7a"
|
|
|
|
- $ANDROID_HOME/emulator/emulator -avd Flutter-Android -no-audio -no-window
|
|
|
|
- adb wait-for-device
|
|
|
|
- adb shell input keyevent 82
|
|
|
|
- flutter channel $CHANNEL
|
|
|
|
- ./test.sh $(ipconfig getifaddr en0)
|