-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathFastfile
56 lines (49 loc) · 1.46 KB
/
Fastfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
xcversion(version: "~> 11")
platform :ios do
desc "Tests all frameworks"
lane :test do
scan(scheme: "MPGSDK-iOS")
xcov(
workspace: "MPGSDK.xcworkspace",
scheme: "MPGSDK-iOS",
output_directory: "fastlane/test_output/xcov"
)
end
desc "Update the SDK version number for all frameworks in the project."
lane :update_version do
current_build_number = get_build_number(xcodeproj: "MPGSDK.xcodeproj")
UI.message("Current SDK version: #{current_build_number}")
version = UI.input("Enter the new SDK version Number:")
increment_build_number(
build_number: version,
xcodeproj: "MPGSDK.xcodeproj"
)
end
desc "Update generated documentation"
lane :update_docs do
Actions.verify_gem!('jazzy')
# Fastlane runs in the ./fastlane foolder, so we need to go up a directory
Dir.chdir("../") do
Actions.sh("jazzy")
end
end
desc "Prepare a release buy updating the version number and documentation"
lane :prep_release do
update_version
update_docs
end
end