2021-02-10 02:20:09 +00:00
|
|
|
task:
|
|
|
|
# Xcode 12 task
|
|
|
|
osx_instance:
|
|
|
|
image: big-sur-xcode-12.4
|
2021-02-10 09:56:59 +00:00
|
|
|
install_node_script:
|
2021-02-10 02:20:09 +00:00
|
|
|
- brew install node
|
|
|
|
- cd ./nodejs_server_test_auth_basic_and_ssl
|
|
|
|
- npm install
|
2021-02-10 09:56:59 +00:00
|
|
|
upgrade_script:
|
2021-02-10 02:20:09 +00:00
|
|
|
- sudo gem install cocoapods
|
|
|
|
#- flutter channel stable
|
|
|
|
#- flutter upgrade
|
2021-02-10 09:35:29 +00:00
|
|
|
#- flutter channel beta
|
|
|
|
#- flutter upgrade
|
2021-02-10 03:14:58 +00:00
|
|
|
#- flutter channel dev
|
|
|
|
#- flutter upgrade
|
2021-02-10 09:08:03 +00:00
|
|
|
# - flutter channel master
|
|
|
|
# - flutter upgrade
|
|
|
|
# - git fetch origin master
|
2021-02-10 02:20:09 +00:00
|
|
|
matrix:
|
2021-02-10 09:08:03 +00:00
|
|
|
# - name: test_plugin_ios
|
|
|
|
# env:
|
|
|
|
# matrix:
|
|
|
|
# CHANNEL: "master"
|
|
|
|
# #CHANNEL: "dev"
|
2021-02-10 09:35:29 +00:00
|
|
|
# #CHANNEL: "beta"
|
2021-02-10 09:08:03 +00:00
|
|
|
# #CHANNEL: "stable"
|
|
|
|
# script:
|
|
|
|
# - 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
|
|
|
|
# - 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"
|
2021-02-10 09:35:29 +00:00
|
|
|
#CHANNEL: "beta"
|
2021-02-10 08:41:56 +00:00
|
|
|
#CHANNEL: "stable"
|
2021-02-10 09:59:22 +00:00
|
|
|
create_avd_script:
|
2021-02-10 08:54:54 +00:00
|
|
|
- mkdir -p .android && touch ~/.android/repositories.cfg
|
2021-02-10 09:21:16 +00:00
|
|
|
- sdkmanager --list
|
2021-02-10 10:15:21 +00:00
|
|
|
- sdkmanager "system-images;android-30;google_apis;x86"
|
2021-02-10 09:08:03 +00:00
|
|
|
- (yes || true) | sdkmanager --licenses
|
2021-02-10 11:05:41 +00:00
|
|
|
- OUTPUT_AVD=$(avdmanager create avd --force -n Flutter-Android -k "system-images;android-30;google_apis;x86" --device "Nexus 6P")
|
|
|
|
- echo $OUTPUT_AVD
|
2021-02-10 10:20:38 +00:00
|
|
|
- emulator -list-avds
|
2021-02-10 09:59:22 +00:00
|
|
|
start_emulator_background_script:
|
2021-02-10 09:42:03 +00:00
|
|
|
- emulator -avd Flutter-Android -no-audio -no-window
|
2021-02-10 09:59:22 +00:00
|
|
|
wait_for_emulator_script:
|
2021-02-10 08:41:56 +00:00
|
|
|
- adb wait-for-device
|
|
|
|
- adb shell input keyevent 82
|
2021-02-10 09:59:22 +00:00
|
|
|
script:
|
2021-02-10 08:41:56 +00:00
|
|
|
- flutter channel $CHANNEL
|
|
|
|
- ./test.sh $(ipconfig getifaddr en0)
|