This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
LC_ALL: "en_US.UTF-8" | |
LANG: "en_US.UTF-8" | |
MR_LINK: "[MR $CI_MERGE_REQUEST_IID](https://gitlab-01/ios/-/merge_requests/$CI_MERGE_REQUEST_IID)" | |
PIPELINE_URL: "https://gitlab-01/ios/pipelines/$CI_PIPELINE_ID" | |
# схемы тестов которые нужно прогонять | |
UNIT_TEST_SCHEMES: "PSBBaseTests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- test_stage1 | |
- test_stage2 | |
- test_stage3 | |
- test_stage4 | |
- test_stage5 | |
.base_job: | |
tags: | |
- ios_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
guard let scheme = CommandLine.arguments | |
.first(where: { $0.starts(with: "scheme_") })? | |
.dropFirst(7) else { | |
print("⁉️ empty schemes") | |
print("exit(1)") | |
exit(1) | |
} | |
let reportUrl = URL(string: "file://"+FileManager.default.currentDirectoryPath+"/tests/\(scheme)_report/coverage_result/report.json")! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
guard CommandLine.argc > 0 else { exit(-1) } | |
let schemes = CommandLine.arguments | |
.first { $0.starts(with: "schemes_") }? | |
.dropFirst(8) | |
.split(separator: ",") ?? [] | |
let junitUrls = schemes | |
.compactMap { URL(string: "file://"+FileManager.default.currentDirectoryPath+"/tests/\($0)_report/report.junit") } | |
var allTests = 0 |