Skip to content

Commit c1e90e1

Browse files
fkorotkovamirh
authored andcommitted
[ci] Switch to macOS VM with Flutter pre-installed (flutter#1313)
[ci] Switch to macOS VM with Flutter pre-installed
1 parent 40c4344 commit c1e90e1

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.cirrus.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,21 @@ task:
5959
task:
6060
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
6161
osx_instance:
62-
image: mojave-xcode-10.1
63-
install_cocoapods_script:
64-
- sudo gem install cocoapods
62+
image: mojave-xcode-10.2-flutter
6563
setup_script:
66-
- brew update
67-
- brew install libimobiledevice
68-
- brew install ideviceinstaller
69-
- brew install ios-deploy
7064
- pod repo update
71-
- git clone https://github.com/flutter/flutter.git
72-
- git fetch origin master
73-
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
65+
switch_channel_script:
66+
- flutter channel master
67+
- flutter upgrade
7468
- flutter doctor
69+
activate_script:
7570
- pub global activate flutter_plugin_tools
76-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-1 | xargs xcrun simctl boot
71+
create_simulator_script:
72+
- xcrun simctl list
73+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-2 | xargs xcrun simctl boot
7774
matrix:
7875
- name: build_all_plugins_ipa
79-
script:
80-
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
81-
- ./script/build_all_plugins_app.sh ios --no-codesign
76+
script: ./script/build_all_plugins_app.sh ios --no-codesign
8277
- name: build-ipas+drive-examples
8378
env:
8479
PATH: $PATH:/usr/local/bin
@@ -89,6 +84,5 @@ task:
8984
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
9085
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
9186
build_script:
92-
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
9387
- ./script/incremental_build.sh build-examples --ipa
94-
- ./script/incremental_build.sh drive-examples
88+
- ./script/incremental_build.sh drive-examples

0 commit comments

Comments
 (0)