-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.gitlab-ci.yml
116 lines (102 loc) · 1.7 KB
/
template.gitlab-ci.yml
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
107
108
109
110
111
112
113
114
115
116
default:
tags:
- xcode14.0
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- "~/unlock_ci_keychain.sh"
stages:
- info
- build
- lint
- test
- deploy
- misc
- night_build
####################### General #######################
clean_ci:
stage: info
script:
- fastlane clean_all
when: manual
####################### App #######################
app_info_job:
stage: info
script:
- fastlane info
app_snapshot_job:
stage: misc
script:
- fastlane snapshot
artifacts:
when: always
paths:
- screenshots
when: manual
app_build_job:
stage: build
script:
- fastlane build
app_test_job:
stage: test
script:
- fastlane test
artifacts:
when: always
paths:
- ./fastlane/test_output
app_night_build:
stage: night_build
script:
- fastlane ci_nightbuild
only:
- schedules
- triggers
environment:
name: crashlytics
artifacts:
expire_in: 4 week
when: always
paths:
- ./build/*
app_firebase_job:
stage: deploy
script:
- fastlane ci_firebase
when: manual
environment:
name: firebase
artifacts:
expire_in: 4 week
when: always
paths:
- ./build/*
app_certificates_job:
stage: info
script:
- fastlane refresh_profiles
when: manual
app_testflight_job:
stage: deploy
script:
- fastlane ci_testflight
when: manual
only:
- /^[release|hotfix].*/
environment:
name: testflight
app_appstore_job:
stage: deploy
script:
- fastlane ci_appstore
when: manual
artifacts:
when: always
paths:
- ./build/*
only:
- /^[release|hotfix].*/
environment:
name: appstore