File: .gitlab-ci.yml

package info (click to toggle)
alberta 3.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,176 kB
  • sloc: ansic: 135,836; cpp: 6,601; makefile: 2,801; sh: 333; fortran: 180; lisp: 177; xml: 30
file content (260 lines) | stat: -rw-r--r-- 6,116 bytes parent folder | download
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
257
258
259
260
default:
  timeout: 120 minutes

# always copy code to sub-directory src/ which is passed
# to following stages as an artifact

stages:
  - configure
  - build
  - test
  - tarball

# Debian 12 (bookworm) with GCC 12
# compiler GCC 12, Fortran, out of source build
configure-deb12-gcc12:
  stage: configure
  image: debian:bookworm
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential automake pkg-config libtool gcc gfortran
  script:
    - mkdir src
    - shopt -s extglob
    - cp -r !(src) src
    - cd src
    - ./generate-alberta-automakefiles.sh
    - autoreconf --force --install
    - mkdir build ; cd build ; mkdir out ; cd out ; mkdir of ; cd of ; mkdir source ; cd source
    - ../../../../configure --disable-waiting-in-tests --disable-debug
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

build-deb12-gcc12:
  stage: build
  needs: ["configure-deb12-gcc12"]
  image: debian:bookworm
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential libtool gcc
  script:
    - cd src
    - cd build/out/of/source
    - make
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

test-deb12-gcc12:
  stage: test
  needs: ["build-deb12-gcc12"]
  image: debian:bookworm
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential libtool gcc
  script:
    - cd src
    - cd build/out/of/source
    - make check
    - make distclean

# Debian 13 (trixie) with Clang 16
# compiler: Clang 16, disable FEM toolbox, Dune Grid
configure-deb13-clang16-dunegrid:
  stage: configure
  image: debian:trixie
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential clang automake pkg-config libtool libtirpc-dev cmake git
  script:
    - mkdir src
    - shopt -s extglob
    - cp -r !(src) src
    - cd src
    - ./generate-alberta-automakefiles.sh
    - autoreconf --force --install
    - ./configure --disable-fem-toolbox --disable-debug CC="clang"
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

test-deb13-clang16-dunegrid:
  stage: test
  needs: ["configure-deb13-clang16-dunegrid"]
  image: debian:bookworm
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential clang pkg-config libtool libtirpc-dev cmake git
  script:
    - cd src
    - make install
    - cd ..
    - mkdir dune
    - cd dune
    - git clone https://gitlab.dune-project.org/core/dune-common.git
    - git clone https://gitlab.dune-project.org/core/dune-geometry.git
    - git clone https://gitlab.dune-project.org/core/dune-grid.git
    - ./dune-common/bin/dunecontrol all
    - cd dune-grid/build-cmake/dune/grid/albertagrid/test
    - make test-alberta3d-refine
    - ./test-alberta3d-refine

# Ubuntu 24.10 (oracular) with GCC 13
# compiler: GCC 13, no Fortran, disable debug
configure-ubuntu2410:
  stage: configure
  image: ubuntu:24.10
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential automake pkg-config libtool libtirpc-dev
        gcc
  script:
    - mkdir src
    - shopt -s extglob
    - cp -r !(src) src
    - cd src
    - ./generate-alberta-automakefiles.sh
    - autoreconf --force --install
    - ./configure --disable-debug --disable-waiting-in-tests
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

build-ubuntu2410:
  stage: build
  needs: ["configure-ubuntu2410"]
  image: ubuntu:24.10
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential libtool libtirpc-dev gcc
  script:
    - cd src
    - make
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

test-ubuntu2410:
  stage: test
  needs: ["build-ubuntu2410"]
  image: ubuntu:24.10
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential libtool libtirpc-dev gcc
  script:
    - cd src
    - make check
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

tarball-ubuntu2410:
  stage: tarball
  needs: ["build-ubuntu2410"]
  image: ubuntu:24.10
  before_script:
    - apt-get update
    - apt-get -y install
        build-essential libtool libtirpc-dev gcc
  script:
    - cd src
    - make dist
  artifacts:
    paths:
    - src/alberta-3.*.tar.gz

# openSuse Tumbleweed with Clang 18
# compiler: Clang, linker: mold, no Fortran, disable debug, world dims: 4 5, distcheck
configure-opensusetumbleweed:
  stage: configure
  image: opensuse/tumbleweed
  before_script:
    - zypper refresh
    - zypper install -y clang gcc mold make automake pkg-config libtool
        awk gzip find diffutils
        glibc-devel libtirpc-devel
  script:
    - mkdir src
    - shopt -s extglob
    - cp -r !(src) src
    - cd src
    - ./generate-alberta-automakefiles.sh
    - autoreconf --force --install
    - ./configure --enable-dim-of-world="4 5" --disable-debug --disable-waiting-in-tests CC="clang -B/usr/bin/mold"
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

test-opensusetumbleweed:
  stage: test
  needs: ["configure-opensusetumbleweed"]
  image: opensuse/tumbleweed
  before_script:
    - zypper refresh
    - zypper install -y clang gcc mold make libtool
        awk gzip find diffutils
        glibc-devel libtirpc-devel
  script:
    - cd src
    - make distcheck

# macOS 14, Xcode 15
configure-macOS-14-distcheck:
  stage: configure
  tags:
    - saas-macos-medium-m1
  image: macos-14-xcode-15
  before_script:
    - brew install automake
  script:
    - mkdir src
    - shopt -s extglob
    - cp -r !(src) src
    - cd src
    - ./generate-alberta-automakefiles.sh
    - autoreconf --force --install
    - ./configure --disable-waiting-in-tests --disable-debug
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

build-macOS-14-distcheck:
  stage: build
  needs: ["configure-macOS-14-distcheck"]
  tags:
    - saas-macos-medium-m1
  image: macos-14-xcode-15
  script:
    - cd src
    - make
  artifacts:
    paths:
      - "src"
    expire_in: 1 hour

test-macOS-14-distcheck:
  stage: test
  needs: ["build-macOS-14-distcheck"]
  tags:
    - saas-macos-medium-m1
  image: macos-14-xcode-15
  script:
    - cd src
    - make distcheck