diff --git a/.cirrus.yml b/.cirrus.yml index 98cd6276e0e6..f1abd353a50b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -39,8 +39,16 @@ task: - flutter channel $CHANNEL - ./script/incremental_build.sh test - name: analyze + env: + matrix: + CHANNEL: "master" + CHANNEL: "stable" script: ./script/incremental_build.sh analyze - name: build_all_plugins_apk + env: + matrix: + CHANNEL: "master" + CHANNEL: "stable" script: # TODO(jackson): Allow web plugins once supported on stable # https://github.com/flutter/flutter/issues/42864 @@ -143,6 +151,10 @@ task: - xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot matrix: - name: build_all_plugins_ipa + env: + matrix: + CHANNEL: "master" + CHANNEL: "stable" script: # TODO(jackson): Allow web plugins once supported on stable # https://github.com/flutter/flutter/issues/42864 @@ -196,6 +208,10 @@ task: activate_script: pub global activate flutter_plugin_tools matrix: - name: build_all_plugins_app + env: + matrix: + CHANNEL: "master" + CHANNEL: "stable" script: - flutter channel master - ./script/build_all_plugins_app.sh macos diff --git a/script/build_all_plugins_app.sh b/script/build_all_plugins_app.sh index f2897f8aa9a2..27d1670f8139 100755 --- a/script/build_all_plugins_app.sh +++ b/script/build_all_plugins_app.sh @@ -46,7 +46,7 @@ readonly EXCLUDED=$(IFS=, ; echo "${EXCLUDED_PLUGINS_LIST[*]}") ALL_EXCLUDED=($EXCLUDED) # Exclude nnbd plugins from stable. -if [[ "$CHANNEL" -eq "stable" ]]; then +if [ "$CHANNEL" == "stable" ]; then ALL_EXCLUDED=("$EXCLUDED,$EXCLUDED_PLUGINS_FROM_STABLE") fi diff --git a/script/incremental_build.sh b/script/incremental_build.sh index f54f90b0669c..3911f0a6e9c8 100755 --- a/script/incremental_build.sh +++ b/script/incremental_build.sh @@ -16,7 +16,7 @@ fi # Plugins that are excluded from this task. ALL_EXCLUDED=("") # Exclude nnbd plugins from stable. -if [[ "$CHANNEL" -eq "stable" ]]; then +if [ "$CHANNEL" == "stable" ]; then ALL_EXCLUDED=($EXCLUDED_PLUGINS_FROM_STABLE) echo "Excluding the following plugins: $ALL_EXCLUDED" fi