Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit bf81f69

Browse files
committed
Add channel to fingerprint
1 parent c643da5 commit bf81f69

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

.cirrus.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,32 @@ task:
1212
memory: 16G
1313
environment:
1414
PATH: $PATH:$HOME/.pub-cache/bin
15-
CHANNEL: "stable" # Default to flutter stable, tests can override.
16-
pub_cache:
17-
folder: $HOME/.pub-cache
18-
fingerprint_script: echo $OS; grep -r --include=pubspec.yaml '\:.*[0-9]\+\.' . | grep -v 'version\|flutter\|sdk'| xargs
15+
CHANNEL: "master" # Default to flutter master, tests can override.
16+
channel_script:
17+
- flutter channel $CHANNEL
1918
flutter_pkg_cache:
2019
folder: $FLUTTER_HOME/bin/cache/pkg
2120
fingerprint_script: echo $OS; cat ${FLUTTER_HOME}/bin/internal/*.version
2221
flutter_artifacts_cache:
2322
folder: $FLUTTER_HOME/bin/cache/artifacts
2423
fingerprint_script: echo $OS; cat ${FLUTTER_HOME}/bin/internal/*.version
2524
upgrade_script:
26-
- flutter channel $CHANNEL
2725
- flutter upgrade
2826
- git fetch origin master
2927
activate_script: pub global activate flutter_plugin_tools
3028
matrix:
3129
- name: publishable
30+
environment:
31+
CHANNEL: "stable"
3232
script:
3333
- ./script/check_publish.sh
3434
- name: format
35-
environment:
36-
CHANNEL: "master"
3735
install_script:
3836
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
3937
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
4038
- sudo apt-get update
4139
- sudo apt-get install -y --allow-unauthenticated clang-format-7
40+
- dpkg -L clang-format-7
4241
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-7
4342
- name: test
4443
<< : *FLUTTER_SKIP_WEB_TEMPLATE
@@ -48,18 +47,20 @@ task:
4847
CHANNEL: "stable"
4948
test_script:
5049
- ./script/incremental_build.sh test
50+
depends_on:
51+
- publishable # Upload the stable cache first.
52+
- format # Upload the master cache first.
5153
- name: analyze
52-
environment:
53-
CHANNEL: "master"
5454
script:
5555
- ./script/incremental_build.sh analyze
56+
depends_on:
57+
- format # Upload the master cache first.
5658
- name: build_all_plugins_apk
5759
<< : *FLUTTER_SKIP_WEB_TEMPLATE
5860
script:
5961
- ./script/build_all_plugins_app.sh apk
6062
depends_on:
61-
- format
62-
- publishable
63+
- format # Upload the master cache first.
6364
- name: build-apks+java-test+firebase-test-lab
6465
<< : *FLUTTER_SKIP_WEB_TEMPLATE
6566
environment:
@@ -93,8 +94,8 @@ task:
9394
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
9495
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
9596
depends_on:
96-
- format
9797
- publishable
98+
- format
9899

99100
task:
100101
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
@@ -103,10 +104,7 @@ task:
103104
environment:
104105
COCOAPODS_DISABLE_STATS: true
105106
PATH: $PATH:/usr/local/bin:$HOME/.pub-cache/bin
106-
CHANNEL: "stable" # Default to flutter stable, tests can override.
107-
pub_cache:
108-
folder: $HOME/.pub-cache
109-
fingerprint_script: echo $OS; echo $CHANNEL; grep -r --include=pubspec.yaml '\:.*[0-9]\+\.' . | grep -v 'version\|flutter\|sdk'| xargs
107+
CHANNEL: "master" # Default to flutter master, tests can override.
110108
flutter_pkg_cache:
111109
folder: $FLUTTER_HOME/bin/cache/pkg
112110
fingerprint_script: echo $OS; cat ${FLUTTER_HOME}/bin/internal/*.version
@@ -119,20 +117,20 @@ task:
119117
- flutter upgrade
120118
- git fetch origin master
121119
activate_script: pub global activate flutter_plugin_tools
120+
<< : *FLUTTER_SKIP_WEB_TEMPLATE
122121
create_simulator_script:
123122
- xcrun simctl list
124123
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-2 | xargs xcrun simctl boot
125124
matrix:
126125
- name: build_all_plugins_ipa
127-
<< : *FLUTTER_SKIP_WEB_TEMPLATE
128126
script:
129127
- ./script/build_all_plugins_app.sh ios --no-codesign
130128
- name: lint_darwin_plugins
131-
<< : *FLUTTER_SKIP_WEB_TEMPLATE
129+
environment:
130+
CHANNEL: "stable"
132131
script:
133132
- ./script/lint_darwin_plugins.sh
134133
- name: build-ipas+drive-examples
135-
<< : *FLUTTER_SKIP_WEB_TEMPLATE
136134
environment:
137135
matrix:
138136
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
@@ -146,6 +144,6 @@ task:
146144
script:
147145
- ./script/incremental_build.sh build-examples --ipa
148146
- ./script/incremental_build.sh drive-examples
149-
depends_on:
150-
- format
151-
- publishable
147+
depends_on:
148+
- build_all_plugins_ipa # Upload the master cache first.
149+
- lint_darwin_plugins # Upload the stable cache first.

0 commit comments

Comments
 (0)