forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
80 lines (78 loc) · 2.54 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
container:
dockerfile: .ci/Dockerfile
cpu: 4
memory: 8G
upgrade_script:
- flutter channel master
- flutter upgrade
- git fetch origin master
activate_script: pub global activate flutter_plugin_tools
matrix:
- name: analyze
script: ./script/incremental_build.sh analyze --custom-analysis=web_benchmarks/testing/test_app
- name: publishable
script: ./script/check_publish.sh
depends_on:
- analyze
- name: test+format
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-5.0
test_script: ./script/incremental_build.sh test
depends_on:
- analyze
- name: build-apks+java-test
env:
matrix:
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
script:
- ./script/incremental_build.sh build-examples --apk
- ./script/incremental_build.sh java-test # must come after apk build
depends_on:
- analyze
- name: web_benchmarks_test
script:
- ./script/install_chromium.sh
- export CHROME_EXECUTABLE=$(pwd)/.chromium/chrome-linux/chrome
- flutter config --enable-web
- cd packages/web_benchmarks/testing/test_app
- flutter packages get
- cd ../..
- flutter packages get
- dart testing/web_benchmarks_test.dart
task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
name: build-ipas
osx_instance:
image: high-sierra-xcode-9.4.1
env:
PATH: $PATH:/usr/local/bin
matrix:
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
setup_script:
- pod repo update
- git clone https://github.com/flutter/flutter.git
- git fetch origin master
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
- pub global activate flutter_plugin_tools
build_script:
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- ./script/incremental_build.sh build-examples --ipa
task:
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
name: local_tests
osx_instance:
image: catalina-flutter
env:
PATH: $PATH:/usr/local/bin
setup_script:
- pod repo update
- git fetch origin master
- flutter doctor
- pub global activate flutter_plugin_tools
- brew install clang-format
build_script:
- ./script/local_tests.sh