blob: 61db39fea063720c751c639751f3aa09cd77c94f [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',
36 skip_package_ipa: true
37 )
38 end
39
Kateryna Kostiukf24f7152017-12-14 10:19:13 -050040 desc "Submit a new Beta Build to Apple TestFlight"
41 lane :beta do
42 ensure_git_status_clean
43 unlock_keychain
44 match(
45 type: "appstore"
46 )
47 increment_build_number
48 gym(
49 scheme: "Ring",
50 clean: true,
51 configuration: "Release",
52 export_method: 'app-store',
53 )
54 pilot(
55 skip_waiting_for_build_processing: true
56 )
57 new_build_number = Actions.lane_context[Actions::SharedValues::BUILD_NUMBER]
58 current_version = get_version_number
59 message = "project: bump to version #{current_version}.#{new_build_number} for release"
60 clean_build_artifacts
61 commit_version_bump(
62 xcodeproj: "Ring.xcodeproj",
63 message: message,
64 force: true
65 )
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