Andreas Traczyk | 120ecee | 2017-11-22 16:25:11 -0500 | [diff] [blame] | 1 | # 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 |
| 14 | fastlane_version "2.68.0" |
| 15 | |
| 16 | default_platform :ios |
| 17 | |
| 18 | platform :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 Kostiuk | ee65886 | 2019-11-04 13:41:33 -0500 | [diff] [blame] | 36 | skip_codesigning: true, |
Andreas Traczyk | 120ecee | 2017-11-22 16:25:11 -0500 | [diff] [blame] | 37 | skip_package_ipa: true |
| 38 | ) |
| 39 | end |
| 40 | |
Kateryna Kostiuk | f24f715 | 2017-12-14 10:19:13 -0500 | [diff] [blame] | 41 | desc "Submit a new Beta Build to Apple TestFlight" |
| 42 | lane :beta do |
| 43 | ensure_git_status_clean |
| 44 | unlock_keychain |
Kateryna Kostiuk | 5bf79dc | 2020-12-09 12:31:22 -0500 | [diff] [blame] | 45 | 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 Kostiuk | f24f715 | 2017-12-14 10:19:13 -0500 | [diff] [blame] | 51 | match( |
Kateryna Kostiuk | 5bf79dc | 2020-12-09 12:31:22 -0500 | [diff] [blame] | 52 | api_key: api_key, |
| 53 | type: "appstore", |
Kateryna Kostiuk | f24f715 | 2017-12-14 10:19:13 -0500 | [diff] [blame] | 54 | ) |
| 55 | increment_build_number |
| 56 | gym( |
| 57 | scheme: "Ring", |
| 58 | clean: true, |
| 59 | configuration: "Release", |
| 60 | export_method: 'app-store', |
| 61 | ) |
| 62 | pilot( |
Kateryna Kostiuk | 5bf79dc | 2020-12-09 12:31:22 -0500 | [diff] [blame] | 63 | api_key: api_key, |
| 64 | skip_waiting_for_build_processing: true, |
Kateryna Kostiuk | f24f715 | 2017-12-14 10:19:13 -0500 | [diff] [blame] | 65 | ) |
Kateryna Kostiuk | f24f715 | 2017-12-14 10:19:13 -0500 | [diff] [blame] | 66 | end |
| 67 | |
Andreas Traczyk | 120ecee | 2017-11-22 16:25:11 -0500 | [diff] [blame] | 68 | 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 |
| 75 | end |