File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1818# Update this, if you use features of a newer version
1919fastlane_version "1.66.0"
2020
21- desc "Run all tests"
22- lane :test do
21+ desc "Run tests"
22+ lane :test do |options |
23+ if scheme = options [ :scheme ]
24+ scan ( scheme : scheme , clean : true , code_coverage : true )
25+ else
26+ test_all_scheme
27+ end
28+ end
29+
30+ desc "Run tests to all schemes"
31+ lane :test_all_schemes do
2332 scan ( scheme : "RouterX iOS" , clean : true , code_coverage : true )
2433 scan ( scheme : "RouterX OSX" , clean : true , code_coverage : true )
2534 scan ( scheme : "RouterX tvOS" , clean : true , code_coverage : true )
@@ -51,6 +60,9 @@ lane :release do |options|
5160 ensure_git_branch
5261 ensure_git_status_clean
5362
63+ test_all_schemes
64+ lint
65+
5466 sync_build_number_to_git
5567 increment_version_number ( version_number : target_version )
5668 version_bump_podspec ( path : "RouterX.podspec" , version_number : target_version )
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ sudo gem install fastlane
99```
1010fastlane test
1111```
12- Run all tests
12+ Run tests
13+ ### test_all_schemes
14+ ```
15+ fastlane test_all_schemes
16+ ```
17+ Run tests to all schemes
1318### carthage_lint
1419```
1520fastlane carthage_lint
You can’t perform that action at this time.
0 commit comments