Skip to content

Commit

Permalink
[skip ci] don't run Cirrus on tags (flutter#2396)
Browse files Browse the repository at this point in the history
When all plugins are release at once there will be a tag for each of the plugins but each tag will again test all plugins which makes it not optimal.
  • Loading branch information
fkorotkov authored and Michael Klimushyn committed Dec 11, 2019
1 parent bdea2cf commit 4652270
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
task:
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
only_if: $CIRRUS_TAG == ''
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
container:
dockerfile: .ci/Dockerfile
Expand Down Expand Up @@ -91,6 +93,8 @@ task:
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`

task:
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
only_if: $CIRRUS_TAG == ''
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
osx_instance:
image: mojave-xcode-11.2.1-flutter
Expand Down Expand Up @@ -140,6 +144,8 @@ task:
- ./script/incremental_build.sh build-examples --ipa
- ./script/incremental_build.sh drive-examples
task:
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
only_if: $CIRRUS_TAG == ''
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
osx_instance:
image: mojave-xcode-11.2.1-flutter
Expand Down

0 comments on commit 4652270

Please sign in to comment.