blob: 4b82fd61f2a88dbad4fef013fa00a77c8cb19889 [file] [log] [blame]
Andreas Traczyk120ecee2017-11-22 16:25:11 -05001# Customise this file, documentation can be found here:
2# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
3# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
4# can also be listed using the `fastlane actions` command
5
6# Change the syntax highlighting to Ruby
7# All lines starting with a # are ignored when running `fastlane`
8
9# If you want to automatically update fastlane if a new version is available:
10# update_fastlane
11
12# This is the minimum version number required.
13# Update this, if you use features of a newer version
14fastlane_version "2.68.0"
15
16default_platform :ios
17
18platform :ios do
19 desc "Runs all the tests"
20 lane :test do
21 scan
22 end
23
24 desc "Test build without packaging"
25 lane :build do
26 unlock_keychain
27 match(
28 force: true,
29 type: "development"
30 )
31 gym(
32 scheme: "Ring",
33 clean: true,
34 configuration: "Development",
35 export_method: 'development',
Kateryna Kostiukee658862019-11-04 13:41:33 -050036 skip_codesigning: true,
Andreas Traczyk120ecee2017-11-22 16:25:11 -050037 skip_package_ipa: true
38 )
39 end
40
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050041 desc "Submit a new Beta Build to Apple TestFlight"
42 lane :beta do
43 ensure_git_status_clean
44 unlock_keychain
Kateryna Kostiuk5bf79dc2020-12-09 12:31:22 -050045 api_key = app_store_connect_api_key(
46 key_id: "#{ENV["KEY_ID"]}",
47 issuer_id: "#{ENV["ISSUER_ID"]}",
48 key_filepath: "#{ENV["KEY_FILEPATH"]}",
49 in_house: false,
50 )
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050051 match(
Kateryna Kostiuk5bf79dc2020-12-09 12:31:22 -050052 api_key: api_key,
53 type: "appstore",
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050054 )
55 increment_build_number
56 gym(
57 scheme: "Ring",
58 clean: true,
59 configuration: "Release",
60 export_method: 'app-store',
61 )
62 pilot(
Kateryna Kostiuk5bf79dc2020-12-09 12:31:22 -050063 api_key: api_key,
64 skip_waiting_for_build_processing: true,
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050065 )
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050066 end
67
Andreas Traczyk120ecee2017-11-22 16:25:11 -050068 after_all do |lane|
69 # This block is called, only if the executed lane was successful
70 end
71
72 error do |lane, exception|
73 # This block is called, only if the executed lane has failed
74 end
75end