|
1 |
| -# This file contains the fastlane.tools configuration |
2 |
| -# You can find the documentation at https://docs.fastlane.tools |
3 |
| -# |
4 |
| -# For a list of all available actions, check out |
5 |
| -# |
6 |
| -# https://docs.fastlane.tools/actions |
7 |
| -# |
8 |
| -# For a list of all available plugins, check out |
9 |
| -# |
10 |
| -# https://docs.fastlane.tools/plugins/available-plugins |
11 |
| -# |
12 |
| - |
13 |
| -# Uncomment the line if you want fastlane to automatically update itself |
14 |
| -# update_fastlane |
15 |
| - |
16 | 1 | default_platform(:ios)
|
17 | 2 |
|
18 | 3 | platform :ios do
|
19 |
| - desc "Description of what the lane does" |
20 |
| - lane :custom_lane do |
21 |
| - # add actions here: https://docs.fastlane.tools/actions |
| 4 | + desc "build swift-sample-app .ipa and ui-test.zip for browserstack" |
| 5 | + lane :build_for_browserstack do |
| 6 | + setup_ci |
| 7 | + build_swift_sample_app |
| 8 | + build_ui_tests |
| 9 | + end |
| 10 | + |
| 11 | + desc "build swift-sample-app .ipa" |
| 12 | + lane :build_swift_sample_app do |
| 13 | + build_app( |
| 14 | + project: "sample-apps/swift-sample-app/swift-sample-app.xcodeproj", |
| 15 | + configuration: "Debug", |
| 16 | + scheme: "swift-sample-app", |
| 17 | + silent: true, |
| 18 | + clean: true, |
| 19 | + destination: "generic/platform=iOS", |
| 20 | + output_directory: "./build-swift-sample-app", |
| 21 | + output_name: "swift-sample-app.ipa", |
| 22 | + skip_codesigning: true, |
| 23 | + export_method: "development", |
| 24 | + export_team_id: "BP98Z28R86", |
| 25 | + ) |
| 26 | + end |
| 27 | + |
| 28 | + desc "build swift-sample-app UI tests" |
| 29 | + lane :build_ui_tests do |
| 30 | + scan( |
| 31 | + project: "sample-apps/swift-sample-app/swift-sample-app.xcodeproj", |
| 32 | + scheme: "swift-sample-app", |
| 33 | + skip_build: false, |
| 34 | + derived_data_path: "./build-swift-sample-app", |
| 35 | + build_for_testing: true |
| 36 | + ) |
| 37 | + |
| 38 | + zip( |
| 39 | + path: "./build-swift-sample-app/Build/Products/Debug-iphonesimulator/SwiftSampleAppUITest-Runner.app", |
| 40 | + output_path: "./build-swift-sample-app/swift-sample-app-ui-test.zip" |
| 41 | + ) |
22 | 42 | end
|
23 | 43 | end
|
0 commit comments