-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
152 lines (137 loc) · 4.87 KB
/
.gitlab-ci.yml
File metadata and controls
152 lines (137 loc) · 4.87 KB
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
stages:
- test
- package
- downstream
test-of:
stage: test
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/debian-13-qt6"
script:
- mkdir ./_build
- cd ./_build && cmake .. -DOFBUILD_ENABLE_DOCS=OFF -DOFBUILD_ENABLE_GUI=OFF
- make stylecheck
- make -j `nproc`
- ctest -j 4 --output-on-failure
test-of-unix-full:
stage: test
when: manual
parallel:
matrix:
- TAG: ["debian-13-qt6",
"ubuntu-24.10-qt6",
"fedora-42-qt6"]
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/$TAG"
script:
- mkdir ./_build
- cd ./_build && cmake .. -DOFBUILD_ENABLE_DOCS=OFF -DOFBUILD_ENABLE_GUI=OFF
- make -j `nproc`
- ctest -j 4 --output-on-failure
pkg-of-no-ui:
stage: package
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/debian-13-qt6"
script:
- mkdir ./_build_noui
- cd ./_build_noui && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DOFBUILD_ENABLE_GUI=OFF
- make -j `nproc`
- cpack -j `nproc`
artifacts:
paths:
- /builds/openfluid/incubateur/openfluid/_build_noui/*.deb
pkg-of-full-deb:
stage: package
when: manual
parallel:
matrix:
- TAG: ["debian-13-qt6",
"ubuntu-24.10-qt6"]
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/$TAG"
script:
- mkdir ./_build_release
- cd ./_build_release && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- make -j `nproc`
- cpack -j `nproc`
artifacts:
paths:
- /builds/openfluid/incubateur/openfluid/_build_release/*.deb
pkg-of-full-rpm:
stage: package
when: manual
parallel:
matrix:
- TAG: ["fedora-42-qt6"]
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/$TAG"
script:
- mkdir ./_build_release
- cd ./_build_release && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- export QA_SKIP_RPATHS=1
- make -j `nproc`
- cpack -j `nproc`
artifacts:
paths:
- /builds/openfluid/incubateur/openfluid/_build_release/*.rpm
pkg-bindings-r:
stage: downstream
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/debian-13-qt6"
before_script:
- sudo apt-get update && sudo apt-get install -y /builds/openfluid/incubateur/openfluid/_build_noui/*.deb
script:
- mkdir downstream && cd downstream
- git clone https://forge.inrae.fr/openfluid/ropenfluid.git
- cd ropenfluid
- cmake -P check.cmake
- cmake -P build.cmake
artifacts:
paths:
- /builds/openfluid/incubateur/openfluid/downstream/ropenfluid/_build/*.tar.gz
pkg-bindings-py:
stage: downstream
image: "registry.forge.inrae.fr/openfluid/interne/openfluid-devtools/ofbuild/debian-13-qt6"
before_script:
- sudo apt-get update && sudo apt-get install -y /builds/openfluid/incubateur/openfluid/_build_noui/*.deb
script:
- mkdir downstream && cd downstream
- git clone https://forge.inrae.fr/openfluid/pyopenfluid.git
- cd pyopenfluid
- python3 setup.py check
- python3 setup.py build
- python3 setup.py test
- python3 setup.py sdist bdist
artifacts:
paths:
- /builds/openfluid/incubateur/openfluid/downstream/pyopenfluid/dist/*.tar.gz
# build-of-container-ubuntu-22-04:
# stage: container
# image: docker:24.0.5-cli
# services:
# - docker:24.0.5-dind
# variables:
# DOCKER_TLS_CERTDIR: ""
# DOCKER_HOST: tcp://docker:2375
# script:
# - |
# cat > Dockerfile <<EOF
# FROM ubuntu:22.04
# COPY openfluid_2.2.1~beta2_jammy_amd64.deb /tmp/
# RUN apt-get update && apt-get install -y /tmp/openfluid_2.2.1~beta2_jammy_amd64.deb && rm /tmp/openfluid_2.2.1~beta2_jammy_amd64.deb
# EOF
# - docker build -t registry.forge.inrae.fr/openfluid/incubateur/openfluid/openfluid:2.2.1b1-ubuntu-22.04-qt5 .
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - docker push registry.forge.inrae.fr/openfluid/incubateur/openfluid/openfluid:2.2.1b1-ubuntu-22.04-qt5
# Warning: relies on machine-dependant structure, especially custom buildOFwin_ci.ps1 and testOFwin_ci.ps1 scripts
# TODO set automatic when build kill functional
test-of-windows:
stage: test
when: manual
timeout: 20m
tags: [ windows ]
variables:
MINGW64_EXE: "C:\\msys64_for_ofbuild_qt6\\mingw64.exe"
script:
- Start-Process -FilePath "$MINGW64_EXE" -ArgumentList "/usr/bin/bash", "./.gitlab/buildOFwin_ci.sh" -NoNewWindow -Wait
- find ./_build/build_out.log "Built target observer-export.vars.files.csv-multicols"
- Start-Process -FilePath "$MINGW64_EXE" -ArgumentList "/usr/bin/bash", "./.gitlab/testOFwin_ci.sh" -NoNewWindow -Wait
- find ./_build/test_out.log "100% tests passed"
artifacts:
when: always
paths:
- ./_build/*.log
# TODO add Windows-package