-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fastfile
97 lines (77 loc) · 1.79 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
fastlane_version "1.41.1"
default_platform :ios
platform :ios do
desc "Create app on iTunes Connect"
lane :create_app do
# be carefull with produce action, because apps created can't be deleted
# from iTunes Connect (thanks Apple)
# https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/TransferringAndDeletingApps.html
produce(
app_identifier: 'me.maroto.codemotion20152',
app_name: 'prueba codemotion',
language: 'Spanish',
app_version: '1.0',
sku: 'CODE20155', # if SKU is not specified, it will use a random one
)
end
desc "Update certificates and use it on provisioning profiles"
lane :update_certs do
cert
sigh(force: true)
end
desc "Enable push if is needed"
lane :enable_push do
pem
sigh(force:true)
end
#########
# BUILD #
#########
desc "Create an ipa with Debug configuration"
lane :ipa_debug do
gym(
configuration: 'Debug',
output_name: 'codemotion-debug.ipa'
)
end
desc "Create an ipa with Release configuration"
lane :ipa_release do
gym(
configuration: 'Release',
output_name: 'codemotion-release.ipa'
)
end
##########
# IMAGES #
##########
lane :generate_snapshots do
snapshot(
clear_previous_screenshots: true,
)
end
#########
# TESTS #
#########
desc "Runs test with xctest"
lane :xctest do
xctest(destination: "name=iPhone 5s")
end
desc "Runs test with scan"
lane :scan do
scan(
scheme: 'codemotion2015',
device: 'iPhone 6'
)
end
########
# MISC #
########
desc "Dummy lane which says hello"
lane :say_hello do
say 'hello'
end
desc "Perform swiftlint (requires swiftlint)"
lane :lint do
swiftlint
end
end