Add quiet_build_and_test.sh — just shows warnings and errors.

This commit is contained in:
Brent Simmons
2025-04-22 20:49:14 -07:00
parent 57a170beed
commit 6bdd710082
2 changed files with 65 additions and 21 deletions

View File

@@ -17,6 +17,27 @@
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:RSWeb",
"identifier" : "RSWebTests",
"name" : "RSWebTests"
}
},
{
"target" : {
"containerPath" : "container:",
"identifier" : "RSCoreTests",
"name" : "RSCoreTests"
}
},
{
"target" : {
"containerPath" : "container:Account",
"identifier" : "AccountTests",
"name" : "AccountTests"
}
},
{
"skippedTests" : [
"ScriptingTests\/testFeedOPML()"
@@ -27,33 +48,12 @@
"name" : "NetNewsWireTests"
}
},
{
"target" : {
"containerPath" : "container:Account",
"identifier" : "AccountTests",
"name" : "AccountTests"
}
},
{
"target" : {
"containerPath" : "container:RSParser",
"identifier" : "RSParserTests",
"name" : "RSParserTests"
}
},
{
"target" : {
"containerPath" : "container:RSWeb",
"identifier" : "RSWebTests",
"name" : "RSWebTests"
}
},
{
"target" : {
"containerPath" : "container:Core",
"identifier" : "CoreTests",
"name" : "CoreTests"
}
}
],
"version" : 1

44
quiet_build_and_test.sh Executable file
View File

@@ -0,0 +1,44 @@
#!/bin/bash
set -euo pipefail
# This script is for checking that both Mac and iOS targets build and that tests pass.
# Note: depends on xcbeautify: <https://github.com/cpisciotta/xcbeautify>
# === CONFIGURABLE VARIABLES ===
PROJECT_PATH="NetNewsWire.xcodeproj"
SCHEME_MAC="NetNewsWire"
SCHEME_IOS="NetNewsWire-iOS"
DESTINATION_MAC="platform=macOS,arch=arm64"
DESTINATION_IOS="platform=iOS Simulator,name=iPhone 16"
echo "🛠 Building macOS target..."
xcodebuild \
-project "$PROJECT_PATH" \
-scheme "$SCHEME_MAC" \
-destination "$DESTINATION_MAC" \
clean build | xcbeautify --quiet
echo "🛠 Building iOS target..."
xcodebuild \
-project "$PROJECT_PATH" \
-scheme "$SCHEME_IOS" \
-destination "$DESTINATION_IOS" \
clean build | xcbeautify --quiet
echo "✅ Builds completed."
echo "🧪 Running tests for macOS target..."
xcodebuild \
-project "$PROJECT_PATH" \
-scheme "$SCHEME_MAC" \
-destination "$DESTINATION_MAC" \
test | xcbeautify --quiet
echo "🧪 Running tests for iOS target..."
xcodebuild \
-project "$PROJECT_PATH" \
-scheme "$SCHEME_IOS" \
-destination "$DESTINATION_IOS" \
test | xcbeautify --quiet
echo "🎉 All builds and tests completed successfully."