Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: only store the final report file as test result. #4434

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 27 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,12 @@ commands:
name: Run tests
working_directory: << parameters.directory >>
command: bundle exec fastlane scan
# FIXME Check artifacts and adjust
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output/report.html
destination: test_report.html
path: fastlane/test_output
destination: scan-test-output

scan-and-archive:
parameters:
Expand All @@ -281,11 +282,12 @@ commands:
name: Run tests
working_directory: << parameters.directory >>
command: bundle exec fastlane scan
# FIXME Check artifacts and adjust
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output/report.html
destination: test_report.html
path: fastlane/test_output
destination: scan-test-output
- run:
name: Archive
working_directory: << parameters.directory >>
Expand All @@ -304,11 +306,12 @@ commands:
name: Run tests
working_directory: << parameters.directory >>
command: bundle exec fastlane scan
# FIXME Check artifacts and adjust
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output/report.html
destination: test_report.html
path: fastlane/test_output
destination: scan-test-output
- run:
name: Archive all platforms
working_directory: << parameters.directory >>
Expand Down Expand Up @@ -394,7 +397,7 @@ commands:
directory: fastlane/test_output/xctest/ios
bundle_name: BackendIntegrationTests
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -666,7 +669,7 @@ jobs:
job: "create_snapshot_pr"
version: "macos"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/macos/revenuecat/tests.xml
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -694,7 +697,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-18"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -722,7 +725,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-17"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -754,7 +757,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-16"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -784,7 +787,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-15"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand All @@ -803,7 +806,7 @@ jobs:
directory: fastlane/test_output/xctest/tvos
bundle_name: RevenueCat
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/tvos/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand All @@ -830,7 +833,7 @@ jobs:
job: "create_snapshot_pr"
version: "watchos"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/watchos/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -866,7 +869,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-14"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -901,7 +904,7 @@ jobs:
job: "create_snapshot_pr"
version: "ios-13"
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand Down Expand Up @@ -989,8 +992,7 @@ jobs:
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output/report.html
destination: test_report.html
path: fastlane/test_output
- store_artifacts:
path: RevenueCat.xcframework.zip
destination: RevenueCat.xcframework.zip
Expand Down Expand Up @@ -1183,7 +1185,7 @@ jobs:
bundle exec fastlane run swiftlint raise_if_swiftlint_error:true strict:true \
reporter:junit output_file:fastlane/test_output/swiftlint/junit.xml
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/swiftlint/junit.xml
- store_artifacts:
path: fastlane/test_output

Expand Down Expand Up @@ -1244,7 +1246,7 @@ jobs:
directory: fastlane/test_output/xctest/ios
bundle_name: BackendIntegrationTests
- store_test_results:
path: fastlane/test_output
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output
Expand All @@ -1264,6 +1266,11 @@ jobs:
- compress_result_bundle:
directory: fastlane/test_output/xctest/ios
bundle_name: v3LoadShedderIntegration
- store_test_results:
path: fastlane/test_output/xctest/ios/report.junit
- store_artifacts:
path: fastlane/test_output/xctest
destination: scan-test-output

deploy-purchase-tester:
executor:
Expand Down
1 change: 1 addition & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ platform :ios do
)
rescue => e
# Equivalent to `fail_build: !generate_snapshots`
UI.verbose("Failed to run tests for RevenueCatUI") # FIXME REMOVE THIS
raise e if !generate_snapshots
end
end
Expand Down