5
5
cpu : 8
6
6
memory : 16G
7
7
upgrade_script :
8
+ - flutter channel stable
9
+ - flutter upgrade
8
10
- flutter channel master
9
11
- flutter upgrade
10
12
- git fetch origin master
11
13
activate_script : pub global activate flutter_plugin_tools
12
14
matrix :
13
15
- name : publishable
14
16
script : ./script/check_publish.sh
15
- - name : test+ format
17
+ - name : format
16
18
install_script :
17
19
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
18
20
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
19
21
- sudo apt-get update
20
22
- sudo apt-get install -y --allow-unauthenticated clang-format-7
21
23
format_script : ./script/incremental_build.sh format --travis --clang-format=clang-format-7
22
- test_script : ./script/incremental_build.sh test
24
+ - name : test
25
+ env :
26
+ matrix :
27
+ CHANNEL : " master"
28
+ CHANNEL : " stable"
29
+ test_script :
30
+ - flutter channel $CHANNEL
31
+ - ./script/incremental_build.sh test
23
32
- name : analyze
24
33
script : ./script/incremental_build.sh analyze
25
- - name : build-apks+java-test+drive-examples
34
+ - name : build-apks+java-test+firebase-test-lab
26
35
env :
27
36
matrix :
28
37
PLUGIN_SHARDING : " --shardIndex 0 --shardCount 2"
29
38
PLUGIN_SHARDING : " --shardIndex 1 --shardCount 2"
39
+ matrix :
40
+ CHANNEL : " master"
41
+ CHANNEL : " stable"
30
42
MAPS_API_KEY : ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
31
- create_device_script :
32
- echo no | avdmanager -v create avd -n test -k "system-images;android-21;default;armeabi-v7a"
43
+ GCLOUD_FIREBASE_TESTLAB_KEY : ENCRYPTED[fd81ffb7c44af2f8a1ae55e470c69690c1ec7e90aba49d18635fa4f3c72b6807034287e9e697f64e37ab836a66ba9eab]
33
44
script :
45
+ - flutter channel $CHANNEL
34
46
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
35
47
# might include non-ASCII characters which makes Gradle crash.
36
48
# See: https://github.com/flutter/flutter/issues/24935
43
55
- export CIRRUS_COMMIT_MESSAGE=""
44
56
- ./script/incremental_build.sh build-examples --apk
45
57
- ./script/incremental_build.sh java-test # must come after apk build
58
+ - if [[ $GCLOUD_FIREBASE_TESTLAB_KEY == ENCRYPTED* ]]; then
59
+ - echo "This user does not have permission to run Firebase Test Lab tests."
60
+ - else
61
+ - echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
62
+ - ./script/incremental_build.sh firebase-test-lab
63
+ - fi
46
64
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
47
65
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
48
66
@@ -53,11 +71,12 @@ task:
53
71
setup_script :
54
72
- pod repo update
55
73
upgrade_script :
74
+ - flutter channel stable
75
+ - flutter upgrade
56
76
- flutter channel master
57
77
- flutter upgrade
58
78
- git fetch origin master
59
- activate_script :
60
- - pub global activate flutter_plugin_tools
79
+ activate_script : pub global activate flutter_plugin_tools
61
80
create_simulator_script :
62
81
- xcrun simctl list
63
82
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-2 | xargs xcrun simctl boot
70
89
PLUGIN_SHARDING : " --shardIndex 1 --shardCount 4"
71
90
PLUGIN_SHARDING : " --shardIndex 2 --shardCount 4"
72
91
PLUGIN_SHARDING : " --shardIndex 3 --shardCount 4"
92
+ matrix :
93
+ CHANNEL : " master"
94
+ CHANNEL : " stable"
73
95
SIMCTL_CHILD_MAPS_API_KEY : ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
74
96
build_script :
97
+ - flutter channel $CHANNEL
75
98
- ./script/incremental_build.sh build-examples --ipa
76
99
- ./script/incremental_build.sh drive-examples
0 commit comments