-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
84 lines (77 loc) · 3.74 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
---
variables:
# temporarily disable warning of deprecated declarionss since these cause
# huge issues with the deprecation of the Topologies in dune-geometry
# Also ci fails occasionally. This might happen when running on the Dresden runner
# which has TBB installed - Stuttgart runner doesn't.
# Need to investigate if there is an issue with dune-fem and activated TBB
GLOBAL_CMAKE_FLAGS: "-DCMAKE_DISABLE_FIND_PACKAGE_Alberta=TRUE \
-DALLOW_CXXFLAGS_OVERWRITE=ON -DDUNE_GRID_GRIDTYPE_SELECTOR=ON \
-DCMAKE_DISABLE_FIND_PACKAGE_Vc=TRUE \
"
# -DCMAKE_CXX_FLAGS='-Wall -fdiagnostics-color=always -std=c++2a -rdynamic' \
# -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
# -DBUILD_SHARED_LIBS=TRUE"
DUNECI_CMAKE_FLAGS: "$GLOBAL_CMAKE_FLAGS"
DUNE_CMAKE_FLAGS: "$GLOBAL_CMAKE_FLAGS"
DUNE_LOG_LEVEL: WARNING
OMP_NUM_THREADS: 1
before_script:
- source /duneci/bin/duneci-init-job
- duneci-install-module https://gitlab.dune-project.org/core/dune-common.git
- duneci-install-module https://gitlab.dune-project.org/core/dune-geometry.git
- duneci-install-module https://gitlab.dune-project.org/core/dune-grid.git
- duneci-install-module https://gitlab.dune-project.org/core/dune-localfunctions.git
# avoid issue with python bindings caused by dune-alugrid/istl being a
# dependency for the python package but not for dune-fem itself
- duneci-install-module https://gitlab.dune-project.org/core/dune-istl.git
- duneci-install-module https://gitlab.dune-project.org/extensions/dune-alugrid.git
ubuntu-20.04-gcc-9-17:
image: registry.dune-project.org/docker/ci/ubuntu:20.04
script:
- duneci-standard-test
variables:
DUNECI_TOOLCHAIN: gcc-9-17
# DUNE_CONTROL_PATH: /duneci/modules:$CI_PROJECT_DIR
# DUNE_CMAKE_FLAGS: "-DCMAKE_DISABLE_FIND_PACKAGE_PETSc=TRUE -DDUNE_GRID_GRIDTYPE_SELECTOR=ON -DDUNE_MAX_TEST_CORES=4 -DBUILD_SHARED_LIBS=FALSE -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_Alberta=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_Vc=TRUE -DCMAKE_DISABLE_DOCUMENTATION=TRUE"
# DUNECI_CMAKE_FLAGS: $DUNE_CMAKE_FLAGS
tags: [duneci]
## TODO: Fix this pipline
#debian-11-gcc-10-20:
# image: registry.dune-project.org/docker/ci/debian:11
# script:
# - duneci-standard-test
# variables:
# # DUNE_CMAKE_FLAGS: '-DBUILD_SHARED_LIBS=TRUE $GLOBAL_CMAKE_FLAGS'
# # DUNECI_CMAKE_FLAGS: $DUNE_CMAKE_FLAGS
# DUNECI_TOOLCHAIN: gcc-10-20
# tags: [duneci]
debian-11-gcc-9-20-minimal-no-petsc:
image: registry.dune-project.org/docker/ci/debian:11
script:
- DUNECI_CMAKE_FLAGS+="-DCMAKE_DISABLE_FIND_PACKAGE_PETSc=TRUE -DDUNE_ENABLE_PYTHONBINDINGS=OFF"
- duneci-standard-test
variables:
DUNECI_TOOLCHAIN: gcc-9-20
tags: [duneci]
ubuntu:20.04-clang-10-17:
image: registry.dune-project.org/docker/ci/ubuntu:20.04
script:
- duneci-standard-test
variables:
# it seems necesarry to build all libraries shared not only # 'libdunefem'
# DUNE_CMAKE_FLAGS: '-DBUILD_SHARED_LIBS=TRUE $GLOBAL_CMAKE_FLAGS'
# DUNECI_CMAKE_FLAGS: $DUNE_CMAKE_FLAGS
# bug in CI clang-10-17 and clang-10-20 are mixed up
DUNECI_TOOLCHAIN: clang-10-20
tags: [duneci]
debian:11--gcc-9-17:headercheck:
image: registry.dune-project.org/docker/ci/debian:11
script:
- DUNECI_CMAKE_FLAGS="-DENABLE_HEADERCHECK=ON -DDUNE_MAX_TEST_CORES=4 -DBUILD_SHARED_LIBS=TRUE -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_Alberta=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_Vc=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_PETSc=TRUE -DCMAKE_DISABLE_DOCUMENTATION=TRUE"
- duneci-install-module https://gitlab.dune-project.org/dune-fem/dune-fem.git
- cd /duneci/modules/dune-fem/build-cmake
- make headercheck
variables:
DUNECI_TOOLCHAIN: gcc-9-17
tags: [duneci]