forked from andriish/JADE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
256 lines (254 loc) · 9.43 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
---
stages:
- test
variables:
FREL: 0
########################################################################
.Fedora: &Fedora
only:
variables:
- $CI_SERVER_HOST=="gitlab.cern.ch"
stage: test
########################################################################
.CentOS: &CentOS
only:
variables:
- $CI_SERVER_HOST=="gitlab.cern.ch"
stage: test
########################################################################
.Ubuntu: &Ubuntu
only:
variables:
- $CI_SERVER_HOST=="gitlab.cern.ch"
stage: test
########################################################################
.fullbuild-generic: &fullbuild-generic
- bash CI/build.sh imake tarball GNU nodebug
########################################################################
.fullbuild-rpm: &fullbuild-rpm
- sh CI/build.sh imake rpm GNU nodebug
########################################################################
.fullbuild-cmake: &fullbuild-cmake
- sed -i 's/CMAKE_VERBOSE_MAKEFILE ON/CMAKE_VERBOSE_MAKEFILE OFF/g' CMakeLists.txt
- sh CI/build.sh cmake tarball GNU nodebug
########################################################################
.fullbuild-cmake-rpm: &fullbuild-cmake-rpm
- sed -i 's/CMAKE_VERBOSE_MAKEFILE ON/CMAKE_VERBOSE_MAKEFILE OFF/g' CMakeLists.txt
- sh CI/build.sh cmake rpm GNU nodebug
########################################################################
.heprpmsinstall8: &heprpmsinstall8
- uname -a
- cat /etc/issue
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL dnf*plu* --exclude=*uploa* --exclude=*product* --exclude=*subscr* > rpm.log || (cat rpm.log && exit 1)
#for xbae
- dnf -y copr enable averbyts/HEPrpms epel-8-x86_64
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL libnsl libnsl2-devel > rpm.log || (cat rpm.log && exit 1)
########################################################################
.heprpmsinstall9: &heprpmsinstall9
- uname -a
- cat /etc/issue
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL dnf*plu* > rpm.log || (cat rpm.log && exit 1)
#for xbae
- dnf -y copr enable averbyts/HEPrpms epel-9-x86_64
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL libnsl libnsl2-devel > rpm.log || (cat rpm.log && exit 1)
########################################################################
.commoninstall: &commoninstall
- uname -a
- cat /etc/issue
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL dnf*plu* --exclude=*uploa* --exclude=*product* --exclude=*subscr* > rpm.log || (cat rpm.log && exit 1)
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL openssh-server make binutils sed gawk grep rpm rpmdevtools imake git gcc gcc-c++ gcc-gfortran gzip > rpm.log || (cat rpm.log && exit 1)
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL lapack-devel blas-devel imake libX11 libX11-devel libXaw-devel libXau-devel xbae xbae-devel tcsh > rpm.log || (cat rpm.log && exit 1)
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL lapack blas desktop-file-utils which wget bc automake glibc-devel > rpm.log || (cat rpm.log && exit 1)
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL "libnsl*" > rpm.log || (cat rpm.log && exit 1)
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL environment-modules || true
########################################################################
.gccinstall: &gccinstall
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL gcc gcc-c++ gcc-gfortran > rpm.log || (cat rpm.log && exit 1)
########################################################################
.cmakeinstall: &cmakeinstall
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL epel-release || true
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL cmake3 || true
- yum -y install --setopt=keepcache=1 --setopt=cachedir=`pwd`/yum-cache-$FREL cmake python3 openssl-libs openssl-devel chrpath > rpm.log || (cat rpm.log && exit 1)
########################################################################
.devel32: &devel32
- yum -y install xbae-devel.i686 || true
- rpm -e openssl-devel --nodeps|| true
- yum -y install lapack.i686 blas.i686 > rpm.log || (cat rpm.log && exit 1)
- yum -y install lapack-devel.i686 blas-devel.i686 libgcc.i686 > rpm.log || (cat rpm.log && exit 1)
- yum -y install libnsl.i686 libXpm-devel.i686 libnsl2-devel.i686 libXfont2-devel.i686 libX11-devel.i686 libXft-devel.i686 motif-devel.i686 libXaw-devel.i686 libXau-devel.i686 glibc-devel.i686 libgfortran.i686 freetype-devel.i686 openssl-devel.i686 > rpm.log || (cat rpm.log && exit 1)
#With appropriate privileges in docker, the RPM installation is
# - wget https://dl.fedoraproject.org/pub/epel/7/SRPMS/Packages/x/xbae-4.60.4-17.el7.src.rpm || true
# - CC='gcc -m32' CXX='g++ -m32' setarch i686 --32bit rpmbuild --target=i686 --rebuild xbae-4.60.4-17.el7.src.rpm || true
# - rpm -e xbae xbae-devel || true
# - rpm -Uvh ~/rpmbuild/RPMS/i686/xbae*i686.rpm || true
#Otherwise:
# - wget http://downloads.sourceforge.net/xbae/xbae-4.60.4.tar.gz
# - ls -alh
- cp CI/xbae-4.60.4.tar.gz ./
- tar -zxf xbae-4.60.4.tar.gz
- cd xbae-4.60.4
- CC='gcc -m32' CXX='g++ -m32' ./configure --prefix=/usr --libdir=/usr/lib --disable-static --disable-dependency-tracking ||true
- make -j 2 || true
- make -j 2 install || true
- cd ..
########################################################################
Fedora35-gcc-imake-rpm-64bit:
image: fedora:35
variables:
FREL: 35
extends: .Fedora
before_script:
- *commoninstall
- *gccinstall
- *cmakeinstall
script:
- sh CI/build.sh imake rpm GNU nodebug
cache:
key: yum-cache-$FREL
paths:
- yum-cache-$FREL/
artifacts:
paths:
- rpmbuild/RPMS
#######################################################################
Centos8-gcc-imake-gen-32bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cs8
variables:
FREL: C8
extends: .CentOS
before_script:
- *heprpmsinstall8
- *commoninstall
- *gccinstall
- *devel32
script:
- sh CI/build.sh imake tarball32bit GNU nodebug
allow_failure: false
artifacts:
paths:
- cern
#######################################################################
Centos9-gcc-imake-gen-64bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cs9
variables:
FREL: C9
extends: .CentOS
before_script:
- *heprpmsinstall9
- *commoninstall
- *gccinstall
script:
- sh CI/build.sh imake tarball GNU nodebug
allow_failure: false
artifacts:
paths:
- cern
#######################################################################
Centos9-gcc-cmake-gen-32bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cs9
variables:
FREL: C9
extends: .CentOS
before_script:
- *heprpmsinstall9
- *commoninstall
- *gccinstall
- *devel32
script:
- sh CI/build.sh cmake tarball32bit GNU nodebug
allow_failure: false
artifacts:
paths:
- cern
########################################################################
Fedora35-gcc-cmake-gen-64bit:
image: fedora:35
variables:
FREL: 35
extends: .Fedora
before_script:
- *commoninstall
- *gccinstall
- *cmakeinstall
script:
- sh CI/build.sh cmake tarball GNU nodebug
cache:
key: yum-cache-$FREL
paths:
- yum-cache-$FREL/
########################################################################
Fedora35-gcc-cmake-rpm-64bit:
image: fedora:35
variables:
FREL: 35
extends: .Fedora
before_script:
- *commoninstall
- *gccinstall
- *cmakeinstall
script:
- sh CI/build.sh cmake rpm GNU nodebug
cache:
key: yum-cache-$FREL
paths:
- yum-cache-$FREL/
artifacts:
paths:
- rpmbuildcmake/RPMS
#######################################################################
Centos8-gcc-cmake-gen-64bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cs8
variables:
FREL: C8
extends: .CentOS
before_script:
- *heprpmsinstall8
- *commoninstall
- *gccinstall
- *cmakeinstall
script:
- sh CI/build.sh cmake tarball GNU nodebug
#######################################################################
Centos8-gcc-cmake-rpm-64bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cs8
variables:
FREL: C8
extends: .CentOS
before_script:
- *heprpmsinstall8
- *commoninstall
- *gccinstall
- *cmakeinstall
script:
- sh CI/build.sh cmake rpm GNU nodebug
#######################################################################
Centos7-gcc-imake-gen-64bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cc7
variables:
FREL: CC7
extends: .CentOS
before_script:
- *commoninstall
- *gccinstall
script:
- sh CI/build.sh imake tarball GNU nodebug
allow_failure: false
artifacts:
paths:
- cern
#######################################################################
Centos7-gcc-imake-gen-32bit:
image: gitlab-registry.cern.ch/linuxsupport/rpmci/builder-cc7
variables:
FREL: C7
extends: .CentOS
before_script:
- *commoninstall
- *gccinstall
- *devel32
script:
- sh CI/build.sh imake tarball32bit GNU nodebug
allow_failure: false
artifacts:
paths:
- cern