-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fastfile
50 lines (46 loc) · 1.64 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
lane :test do
take_screenshot(
project_id: "project-id",
gcloud_service_key_file: "fastlane/client-secret.json",
devices:
[
{
model: "shamu",
version: "22",
locale: "ja_JP",
orientation: "portrait"
}
],
app_apk: "apk/app.apk",
app_test_apk: "apk/test.apk",
firebase_test_lab_results_bucket: "firebase_cats_test_bucket",
download_dir: ".screenshot"
)
pr_number = ENV["CI_PULL_REQUEST"] != nil ? ENV["CI_PULL_REQUEST"][/(?<=https:\/\/github.com\/cats-oss\/android\/pull\/)(.*)/] : nil\
compare_snapshot(
gcloud_service_key_file: "fastlane/client-secret.json",
snapshot_bucket: "firebase_cats_test_bucket_compare",
working_dir: ".snapshot_test",
screenshot_dir: ".screenshot/shamu-22-ja_JP-portrait",
github_owner: "cats-oss",
github_repository: "android",
github_pr_number: pr_number,
github_api_token: ENV["DANGER_GITHUB_API_TOKEN"]
)
upload_snapshot(
gcloud_service_key_file: "fastlane/client-secret.json",
snapshot_bucket: "firebase_cats_test_bucket_upload",
working_dir: ".snapshot_test",
screenshot_dir: ".screenshot/shamu-22-ja_JP-portrait"
)
screenshot_notifier(
gcloud_service_key_file: "fastlane/client-secret.json",
screenshot_bucket: "firebase_cats_test_bucket_screenshot",
screenshot_dir: ".screenshot",
github_owner: "cats-oss",
github_repository: "android",
github_pr_number: pr_number,
github_api_token: ENV["DANGER_GITHUB_API_TOKEN"],
image_length: 100
)
end