forked from itchio/itch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
162 lines (149 loc) · 2.38 KB
/
.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
stages:
- build
- package
- deploy
test-linux:
stage: build
tags:
- linux
script:
- release/ci-test.js
except:
- tags
artifacts:
expire_in: 1 week
when: always
paths:
- screenshots
- chrome-driver.log.txt
test-darwin:
stage: build
tags:
- darwin
script:
- release/ci-test.js
except:
- tags
artifacts:
expire_in: 1 week
when: always
paths:
- screenshots
- chrome-driver.log.txt
test-windows:
stage: build
retry: 2
tags:
- windows
script:
- release/ci-test.js
except:
- tags
artifacts:
expire_in: 1 week
when: always
paths:
- screenshots
- chrome-driver.log.txt
# i18n check
i18n-check:
stage: build
tags:
- linux
script:
- release/ci-i18n-check.js
except:
- tags
# Compile javascript & css
compile:
stage: build
tags:
- linux
script:
- release/ci-compile.js
artifacts:
expire_in: 1 week
paths:
- prefix.tar
# 32-bit linux portable builds
package-linux-386:
stage: package
tags:
- linux
script:
- release/ci-package.js linux 386
artifacts:
expire_in: 1 week
paths:
- packages
dependencies:
- compile
# 64-bit linux portable builds
package-linux-amd64:
stage: package
tags:
- linux
script:
- release/ci-package.js linux amd64
artifacts:
expire_in: 1 week
paths:
- packages
dependencies:
- compile
# macOS .zip
package-darwin-amd64:
stage: package
tags:
- darwin
script:
- release/ci-package.js darwin amd64
artifacts:
expire_in: 1 week
paths:
- packages
dependencies:
- compile
# windows 32-bit build
package-windows-386:
stage: package
retry: 2
tags:
- windows
script:
- release/ci-package.js windows 386
artifacts:
expire_in: 1 week
paths:
- packages
dependencies:
- compile
# windows 64-bit build
package-windows-amd64:
stage: package
retry: 2
tags:
- windows
script:
- release/ci-package.js windows amd64
artifacts:
expire_in: 1 week
paths:
- packages
dependencies:
- compile
deploy-itchio:
stage: deploy
when: manual
tags:
- linux
only:
- tags
script:
- release/ci-deploy.js
dependencies:
- package-linux-386
- package-linux-amd64
- package-darwin-amd64
- package-windows-386
- package-windows-amd64