mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add quiet_build_and_test.sh — just shows warnings and errors.
This commit is contained in:
@@ -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
44
quiet_build_and_test.sh
Executable 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."
|
||||
Reference in New Issue
Block a user