forked from fastlane/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fastfile
executable file
·106 lines (91 loc) · 2.3 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
98
99
100
101
102
103
104
105
106
# Customise this file, documentation can be found here:
# https://github.com/KrauseFx/fastlane/tree/master/docs
$:.unshift File.dirname(__FILE__)
require 'lib/utils.rb'
fastlane_version "1.0.0"
default_platform :ios
platform :ios do
before_all do
ensure_git_status_clean
end
desc "Runs linting (and eventually static analysis)"
lane :analyze do
return if test_disabled?
make 'lint'
end
desc "Runs all the unit tests."
lane :test do
return if test_disabled?
# TODO: lint & test JS code
xctest(
scheme: 'Wikipedia',
destination: "platform=iOS Simulator,name=iPhone 6,OS=8.3",
reports: [
{
report: "html",
output: "build/reports/unit-tests.html"
},
{
report: "junit",
output: "build/reports/unit-tests.xml"
}
],
clean: nil
)
end
desc "Bump the version, and submit a new **Wikipedia Alpha** Build to Apple TestFlight"
lane :alpha do
# snapshot
sigh
plist_version = get_version_short_string File.expand_path(File.join(ENV['PWD'], 'Wikipedia/Wikipedia-Info.plist'))
increment_version_number(
version_number: ENV['WMF_VERSION_NUMBER'] || plist_version
)
increment_build_number(
build_number: ENV['BUILD_NUMBER'].to_i
)
ipa(
configuration: "Alpha",
scheme: "Wikipedia Alpha",
)
hockey(
notes: '',
notify: '0', # Means do not notify
status: '1', # Means do not make available for download
)
deliver skip_deploy: true, beta: true
end
desc "Submit a new **Wikipedia Beta** build to Apple TestFlight"
lane :beta do
sigh
ipa(
configuration: "Beta",
scheme: "Wikipedia Beta",
)
hockey(
notes: '',
notify: '0', # Means do not notify
status: '1', # Means do not make available for download
)
deliver skip_deploy: true, beta: true
end
desc "Deploy a new version to the App Store"
lane :store do
snapshot
sigh
ipa(
configuration: "Wikipedia",
scheme: "Wikipedia",
)
hockey(
notes: '',
notify: '0', # Means do not notify
status: '1', # Means do not make available for download
)
deliver skip_deploy: true, force: true
end
after_all do |lane|
end
error do |lane, exception|
end
end