-
Notifications
You must be signed in to change notification settings - Fork 37
/
.gitlab-ci.yml
204 lines (196 loc) · 4.37 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
stages:
- test
- build
- upload
- publish
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
variables:
GIT_STRATEGY: fetch
# or clone
# fetch or clone only the last 3 commits
#Tests
basetest-linux:
variables:
# GIT_STRATEGY: clone
image: build-lazarus-x64:latest
stage: test
script:
# - apt-get install sqlite3 libusb-dev libsane-dev zip git -y
- promet/source/testcases/build.sh
only:
- master
# allow_failure: true
tags:
- docker
webdavtest-linux:
image: build-lazarus-x64:latest
stage: test
script:
# - apt-get install sqlite3 libusb-dev libsane-dev zip git -y
- promet/source/testcases/build_webdav.sh
only:
- master
# allow_failure: true
tags:
- docker
#mysql-test:
# image: build-lazarus-x64:latest
# services:
# - mysql:latest
# variables:
# # Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
# MYSQL_DATABASE: promet
# MYSQL_USER: promet
# MYSQL_ROOT_PASSWORD: password
# stage: test
# script:
# - sudo apt-get install -y mysql-client libmysqlclient-dev
# - lazbuild promet/source/testcases/consoletest.lpi
# - promet/output/x86_64-linux/consoletest --mandant=help --config-path=./promet/help/config
# tags:
# - docker-lazarus-x64
# allow_failure: true
#firebird-test:
# image: build-lazarus-x64:latest
# services:
# - mysql:latest
# variables:
# # Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
# ISC_USER: promet
# ISC_PASSWD: password
# stage: test
# script:
# - sudo apt-get install -y mysql-client libmysqlclient-dev
# - lazbuild promet/source/testcases/consoletest.lpi
# - promet/output/x86_64-linux/consoletest --mandant=help --config-path=./promet/help/config
# tags:
# - docker-lazarus-x64
# allow_failure: true
#Build
build:windows:
stage: build
variables:
# GIT_STRATEGY: clone
script:
- git submodule sync --recursive
- bash build.sh clean
- bash build.sh all
tags:
- docker
only:
- master
artifacts:
paths:
- promet/setup/output
expire_in: 1 week
build:linux:i386:
image: build-lazarus-i386
stage: build
script:
- bash build.sh clean
- bash build.sh all
tags:
- docker
only:
- master
artifacts:
paths:
- promet/setup/output
expire_in: 1 week
build:linux:x86-64:
image: build-lazarus-x64:latest
stage: build
script:
# - sshpass -p $AUTOUPLOAD_PW ssh-copy-id $AUTOUPLOAD_USER@$AUTOUPLOAD_HOST -p $AUTOUPLOAD_PORT
- bash build.sh clean
- bash build.sh all
tags:
- docker
only:
- master
artifacts:
paths:
- promet/setup/output
expire_in: 1 week
build:linux:arm:
variables:
GIT_DEPTH: ""
# GIT_STRATEGY: clone
before_script:
- git submodule sync
- git submodule foreach git submodule update
- git submodule update --init --recursive
stage: build
script:
- git clean -fdx
- git submodule foreach git reset --hard
- bash build.sh server
tags:
- linux-arm
only:
- master
artifacts:
paths:
- promet/setup/output
expire_in: 1 week
allow_failure: true
upload:all:
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
- ls -l promet/setup/output/*
stage: upload
script:
# - sshpass -p $AUTOUPLOAD_PW ssh-copy-id $AUTOUPLOAD_USER@$AUTOUPLOAD_HOST -p $AUTOUPLOAD_PORT
- bash promet/setup/upload_builds.sh
only:
- master
dependencies:
- build:linux:arm
- build:linux:i386
- build:linux:x86-64
- build:windows
artifacts:
paths:
- promet/setup/output/act_alphadownload.txt
expire_in: 1 week
tags:
- docker
update:containers:
before_script:
- ls -l promet/setup/output/*
stage: publish
script:
- bash promet/setup/build_containers.sh
dependencies:
- upload:all
only:
- master
tags:
- linux-x64
allow_failure: true
update:alpha-wiki:
image: build-lazarus-x64:latest
before_script:
- ls -l promet/setup/output/*
stage: publish
script:
- bash promet/setup/change_wiki_alpha.sh
only:
- master
dependencies:
- upload:all
tags:
- docker
allow_failure: true
deploy:new_version:
before_script:
- ls -l
script:
- bash promet/setup/change_wiki_version.sh
tags:
- linux-x64
only:
- tags