mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
2af2a08288
Cirrus CI has macOS VMs, so this turns on an instance for tests so that we can evaluate if we can use Cirrus for all three platforms or not.
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
container:
|
|
image: cirrusci/flutter:base
|
|
|
|
task:
|
|
env:
|
|
CIRRUS_WORKING_DIR: "/tmp/flutter sdk"
|
|
PATH: "$CIRRUS_WORKING_DIR/bin:$CIRRUS_WORKING_DIR/bin/cache/dart-sdk/bin:$PATH"
|
|
|
|
git_fetch_script: git fetch origin
|
|
setup_script: |
|
|
echo "SDK directory is: $PWD"
|
|
./bin/flutter --version
|
|
|
|
# disable analytics on the bots and download Flutter dependencies
|
|
./bin/flutter config --no-analytics
|
|
|
|
# run pub get in all the repo packages
|
|
./bin/flutter update-packages
|
|
|
|
matrix:
|
|
- name: docs
|
|
env:
|
|
SHARD: docs
|
|
docs_script: ./dev/bots/docs.sh
|
|
- name: analyze
|
|
env:
|
|
SHARD: analyze
|
|
test_script: dart ./dev/bots/test.dart
|
|
- name: tests-linux
|
|
env:
|
|
SHARD: tests
|
|
test_script: dart ./dev/bots/test.dart
|
|
container:
|
|
cpu: 4
|
|
memory: 8G
|
|
|
|
task:
|
|
name: tests-windows
|
|
env:
|
|
SHARD: tests
|
|
windows_container:
|
|
image: cirrusci/windowsservercore:2016
|
|
os_version: 2016
|
|
cpu: 4
|
|
env:
|
|
CIRRUS_WORKING_DIR: "C:\\Windows\\Temp\\flutter sdk"
|
|
git_fetch_script: git fetch origin
|
|
setup_script:
|
|
- bin\flutter.bat config --no-analytics
|
|
- bin\flutter.bat update-packages
|
|
test_all_script:
|
|
- bin\cache\dart-sdk\bin\dart.exe -c dev\bots\test.dart
|
|
|
|
task:
|
|
name: tests-macos
|
|
env:
|
|
SHARD: tests
|
|
osx_instance:
|
|
image: high-sierra-xcode-9.4.1
|
|
git_fetch_script: git fetch origin
|
|
setup_script:
|
|
- bin/flutter config --no-analytics
|
|
- bin/flutter update-packages
|
|
test_all_script:
|
|
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
|
|
- bin/cache/dart-sdk/bin/dart -c dev/bots/test.dart
|