Skip to content

Commit 514c4e3

Browse files
committed
ci: suppress SoraUI warnings and improve test logs
- Podfile: inhibit SoraUI warnings; disable warnings-as-errors for Pods - test-matrix: allow NO_XCPRETTY=1 for raw xcodebuild output This should unblock hanging tests due to SoraUI PinView warning and provide clearer logs. Signed-off-by: William Richter <richter@soramitsu.co.jp>
1 parent 765e87b commit 514c4e3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Podfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract_target 'fearlessAll' do
99
pod 'SwiftLint'
1010
pod 'R.swift', '6.1.0', :inhibit_warnings => true
1111
pod 'SoraKeystore', :git => 'https://github.com/soramitsu/keystore-iOS.git', :tag => '1.0.2'
12-
pod 'SoraUI', '~> 1.10.3'
12+
pod 'SoraUI', '~> 1.10.3', :inhibit_warnings => true
1313
pod 'SoraFoundation', '~> 1.0.0'
1414
# Migrated to SPM via Packages/FearlessDependencies
1515
# pod 'SwiftyBeaver'
@@ -38,7 +38,7 @@ abstract_target 'fearlessAll' do
3838
pod 'SoraKeystore', :git => 'https://github.com/soramitsu/keystore-iOS.git', :tag => '1.0.2'
3939
pod 'Sourcery', '~> 1.4'
4040
# Ensure UI/framework deps are available to the tests as well
41-
pod 'SoraUI', '~> 1.10.3'
41+
pod 'SoraUI', '~> 1.10.3', :inhibit_warnings => true
4242
pod 'SVGKit'
4343
pod 'MediaView', :git => 'https://github.com/bnsports/MediaView.git', :branch => 'dev'
4444

@@ -59,6 +59,8 @@ post_install do |installer|
5959
config.build_settings['SWIFT_VERSION'] = '5.10'
6060
# Keep concurrency diagnostics lenient in dependencies
6161
config.build_settings['SWIFT_STRICT_CONCURRENCY'] = 'minimal'
62+
# Do not fail builds for warnings emitted by third-party Pods
63+
config.build_settings['SWIFT_TREAT_WARNINGS_AS_ERRORS'] = 'NO'
6264
xcconfig_path = config.base_configuration_reference.real_path
6365
xcconfig = File.read(xcconfig_path)
6466
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")

scripts/test-matrix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ if ! command -v xcodebuild >/dev/null 2>&1; then
121121
fi
122122

123123
# xcpretty is optional; fall back to raw output
124-
if ! command -v xcpretty >/dev/null 2>&1; then
124+
# Allow forcing raw output by setting NO_XCPRETTY=1 (useful for CI debugging)
125+
if [[ "${NO_XCPRETTY:-0}" == "1" ]] || ! command -v xcpretty >/dev/null 2>&1; then
125126
run_tests() {
126127
local config=$1
127128
echo "\n==> Running ${config} tests (no xcpretty)"

0 commit comments

Comments
 (0)