Skip to content
Snippets Groups Projects
Commit 9503334f authored by Philipp Wissmann's avatar Philipp Wissmann
Browse files

CI: adapt to changes in dev container

- Remove adding in CI run (added to docker image now)
- Install llvm 18 in order to have up to date clang-tidy
parent da24ff4d
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ build-image-lint:
variables:
DOCKERFILE_NAME: "Dockerfile"
IMAGE_NAME: "lint"
BASE_IMAGE: "ubuntu:noble"
BASE_IMAGE: "ubuntu:jammy"
<<: *build-image
check-code-format:
......@@ -98,7 +98,7 @@ lint:
name: $CI_REGISTRY_IMAGE/lint:$CI_COMMIT_REF_SLUG
script:
- CMAKE_EXPORT_COMPILE_COMMANDS=1 cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
- run-clang-tidy -j 4 -quiet -p build/
- run-clang-tidy -j 4 -quiet -clang-tidy-binary=clang-tidy-18 -p build/
check-license-header:
needs: []
......@@ -127,19 +127,13 @@ check-script:
.build-library: &build-library
stage: build
coverage: '/^lines:\s*\d+\.\d+\%/'
script:
- useradd developer
- mkdir build
- chown developer:developer build
- >
su developer -c '
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage -Werror -Wall -Wextra -Wpedantic" &&
cmake --build build &&
cd build &&
GTEST_OUTPUT="xml:gtest-results.xml" ctest --output-on-failure --exclude-regex ".*_mpi$" &&
ctest --output-on-failure --tests-regex ".*_mpi$" &&
python3 -m gcovr --print-summary --xml coverage.xml -j$(nproc) --root .. .
'
script:
- cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage -Werror -Wall -Wextra -Wpedantic"
- cmake --build build
- cd build
- GTEST_OUTPUT="xml:gtest-results.xml" ctest --output-on-failure --exclude-regex ".*_mpi$"
- ctest --output-on-failure --tests-regex ".*_mpi$"
- python3 -m gcovr --print-summary --xml coverage.xml -j$(nproc) --root .. .
artifacts:
reports:
coverage_report:
......@@ -165,7 +159,7 @@ build-library-complex:
- >
bash -c '
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Debug &&
cmake --build build --target install
sudo cmake --build build --target install
'
- mkdir build-examples
- >
......@@ -187,17 +181,12 @@ install-library-complex:
.build-deb: &build-deb
stage: build
script:
- useradd developer
- mkdir build
- chown developer:developer build
- >
su developer -c '
cmake -B deb -S . -G Ninja \
- cmake -B deb -S . -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wpedantic" \
&& cmake --build deb \
&& cd deb && cpack
'
-DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wpedantic"
- cmake --build deb
- cd deb
- cpack
artifacts:
paths:
- deb/*.deb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment