-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFastfile
46 lines (38 loc) · 1.02 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
fastlane_version "1.105.0"
default_platform :ios
platform :ios do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
cocoapods
end
desc "Runs all the tests"
lane :test do
scan(scheme: "Test")
slather(
cobertura_xml: true,
output_directory: "test_output",
proj: "Alister-Example.xcodeproj",
workspace: "Alister-Example.xcworkspace",
scheme: "Test",
ignore:['../../*',
'Pods/*',
'*/Vendor/*',
'*/Application/BundleFiles/*',
'*/Controllers/Debug/DebugVC/*'])
end
after_all do |lane|
# This block is called, only if the executed lane was successful
slack(
use_webhook_configured_username_and_icon: true,
message: "Fastlane was successful :rocket:",
success: true,
default_payloads: [:lane, :test_result, :git_branch, :git_author],
)
end
error do |lane, exception|
slack(
message: exception.message,
success: false
)
end
end