Skip to content

Commit bd34ff9

Browse files
calvincestarigh-action-runner
authored andcommitted
ci: Codegen test scripts should halt job on failure (#825)
1 parent 6718327 commit bd34ff9

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

Tests/TestCodeGenConfigurations/CodegenXCFramework/test-project.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ set -o pipefail # Fail if any command in a pipeline fails
55
# Clean up previous build artifacts
66
rm -rf ./build
77

8-
xcodebuild archive -configuration Release -project "CodegenXCFramework.xcodeproj" -scheme "CodegenXCFramework" -destination 'generic/platform=macOS' -archivePath "./build/macOS.xcarchive" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=NO | xcbeautify
8+
xcodebuild archive -configuration Release -project "CodegenXCFramework.xcodeproj" -scheme "CodegenXCFramework" -destination 'generic/platform=macOS' -archivePath "./build/macOS.xcarchive" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=NO | xcbeautify --is-ci
99

10-
xcodebuild -create-xcframework -allow-internal-distribution -output ./build/CodegenXCFramework.xcframework -framework ./build/macOS.xcarchive/Products/Library/Frameworks/CodegenXCFramework.framework | xcbeautify
10+
xcodebuild -create-xcframework -allow-internal-distribution -output ./build/CodegenXCFramework.xcframework -framework ./build/macOS.xcarchive/Products/Library/Frameworks/CodegenXCFramework.framework | xcbeautify --is-ci
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -eo pipefail
23

34
swift test -Xswiftc -warnings-as-errors

Tests/TestCodeGenConfigurations/EmbeddedInTarget-RelativeAbsolute/test-project.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -eo pipefail
33

44
echo "Testing PackageOne.."
55
cd PackageOne
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -eo pipefail
23

3-
set -o pipefail && xcodebuild test -scheme CustomTargetProject -destination platform=macOS -quiet | xcbeautify --is-ci
4+
xcodebuild test -scheme CustomTargetProject -destination platform=macOS -quiet | xcbeautify --is-ci
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -eo pipefail
23

3-
set -o pipefail && xcodebuild test -scheme SPMInXcodeProject -destination platform=macOS -quiet | xcbeautify --is-ci
4+
xcodebuild test -scheme SPMInXcodeProject -destination platform=macOS -quiet | xcbeautify --is-ci
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -eo pipefail
23

34
swift test -Xswiftc -warnings-as-errors

0 commit comments

Comments
 (0)