diff --git a/.ci/scripts/build_all_packages_app.sh b/.ci/scripts/build_all_packages_app.sh index c22b9832ff22..7b381acc4e9c 100755 --- a/.ci/scripts/build_all_packages_app.sh +++ b/.ci/scripts/build_all_packages_app.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e platform="$1" build_mode="$2" diff --git a/.ci/scripts/build_examples_win32.sh b/.ci/scripts/build_examples_win32.sh index bcf57a4b311f..8d87a2e660e6 100755 --- a/.ci/scripts/build_examples_win32.sh +++ b/.ci/scripts/build_examples_win32.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \ --packages-for-branch --log-timing diff --git a/.ci/scripts/create_all_packages_app.sh b/.ci/scripts/create_all_packages_app.sh index 8399e5e38a35..4440dfe2608a 100755 --- a/.ci/scripts/create_all_packages_app.sh +++ b/.ci/scripts/create_all_packages_app.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e dart ./script/tool/bin/flutter_plugin_tools.dart create-all-packages-app \ --output-dir=. --exclude script/configs/exclude_all_packages_app.yaml diff --git a/.ci/scripts/create_simulator.sh b/.ci/scripts/create_simulator.sh index 41f6a1146db7..04d8fd1e9cd5 100755 --- a/.ci/scripts/create_simulator.sh +++ b/.ci/scripts/create_simulator.sh @@ -2,6 +2,9 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e +# Ensure that the create/boot pipeline fails if `create` fails +set -o pipefail # The name here must match remove_simulator.sh readonly DEVICE_NAME=Flutter-iPhone diff --git a/.ci/scripts/custom_package_tests.sh b/.ci/scripts/custom_package_tests.sh index 6b37bfbf1a96..c6473b267dc3 100755 --- a/.ci/scripts/custom_package_tests.sh +++ b/.ci/scripts/custom_package_tests.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e # Exclusions # diff --git a/.ci/scripts/dart_unit_tests_win32.sh b/.ci/scripts/dart_unit_tests_win32.sh index bd1ba77b5916..5fbe4764f6b3 100755 --- a/.ci/scripts/dart_unit_tests_win32.sh +++ b/.ci/scripts/dart_unit_tests_win32.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e dart ./script/tool/bin/flutter_plugin_tools.dart test \ --exclude=script/configs/windows_unit_tests_exceptions.yaml \ diff --git a/.ci/scripts/drive_examples_win32.sh b/.ci/scripts/drive_examples_win32.sh index c3e2e7bc5447..671330179e2f 100755 --- a/.ci/scripts/drive_examples_win32.sh +++ b/.ci/scripts/drive_examples_win32.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e dart ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \ --exclude=script/configs/exclude_integration_win32.yaml --packages-for-branch --log-timing diff --git a/.ci/scripts/native_test_win32.sh b/.ci/scripts/native_test_win32.sh index 37cf54e55c5c..0c86d3601e62 100755 --- a/.ci/scripts/native_test_win32.sh +++ b/.ci/scripts/native_test_win32.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e dart ./script/tool/bin/flutter_plugin_tools.dart native-test --windows \ --no-integration --packages-for-branch --log-timing diff --git a/.ci/scripts/plugin_tools_tests.sh b/.ci/scripts/plugin_tools_tests.sh index 96eec4349f08..574a5fe51e46 100755 --- a/.ci/scripts/plugin_tools_tests.sh +++ b/.ci/scripts/plugin_tools_tests.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e cd script/tool dart pub run test diff --git a/.ci/scripts/prepare_tool.sh b/.ci/scripts/prepare_tool.sh index f93694bf1ff6..6c178170f501 100755 --- a/.ci/scripts/prepare_tool.sh +++ b/.ci/scripts/prepare_tool.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e # To set FETCH_HEAD for "git merge-base" to work git fetch origin main diff --git a/.ci/scripts/remove_simulator.sh b/.ci/scripts/remove_simulator.sh index e15354e600b7..a129e52fd819 100755 --- a/.ci/scripts/remove_simulator.sh +++ b/.ci/scripts/remove_simulator.sh @@ -2,6 +2,7 @@ # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +set -e # The name here must match create_simulator.sh readonly DEVICE_NAME=Flutter-iPhone