-
Notifications
You must be signed in to change notification settings - Fork 8
/
Fastfile
39 lines (36 loc) · 1.12 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
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"
end
lane :test do
# Get Pull Request number
pr_number = ENV["CI_PULL_REQUEST"] != nil ? ENV["CI_PULL_REQUEST"][/(?<=https:\/\/github.com\/cats-oss\/android\/pull\/)(.*)/] : nil
# Upload to Firebase Test Lab
firebase_test_lab_android(
project_id: "cats-firebase",
gcloud_service_key_file: "fastlane/client-secret.json",
gcloud_components_channel: "beta",
type: "robo",
devices: [
{
model: "Nexus6P",
version: "23",
locale: "ja_JP",
orientation: "portrait"
},
{
model: "Pixel2",
version: "28"
}
],
app_apk: "test.apk",
console_log_file_name: "fastlane/console_output.log",
timeout: "60s",
firebase_test_lab_results_bucket: "firebase-test-lab-result-bucket",
slack_url: ENV["SLACK_URL"],
github_owner: "cats-oss",
github_repository: "fastlane-plugin-firebase_test_lab_android",
github_pr_number: pr_number,
github_api_token: ENV["DANGER_GITHUB_API_TOKEN"],
download_dir: ".results"
)
end