Skip to content

Commit

Permalink
Merge pull request #128 from ssciwr/gitlab-ci-fixes
Browse files Browse the repository at this point in the history
Better Docker images for Gitlab CI testing
  • Loading branch information
dokempf authored Jan 9, 2025
2 parents c4a8bfb + 2bb7657 commit f717f20
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions {{cookiecutter.project_slug}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,29 @@ variables:

.template: &template
before_script:
- echo "Installing required dependencies..."
- apt update
- apt install -y cmake git
- echo "Installing potential dependencies..."
{% if cookiecutter.python_bindings == "Yes" and cookiecutter.use_submodules == "No" %}
{% if cookiecutter.python_bindings == "Yes" %}
- apt install -y python3-dev
{% if cookiecutter.use_submodules == "No" %}
- git clone -b v$PYBIND11_VERSION https://github.com/pybind/pybind11.git
- cd pybind11
- mkdir build
- cd build
- cmake -DBUILD_TESTING=OFF ..
- sudo make install
- make install
- cd ../..
{% endif %}
{%- endif %}
{% if cookiecutter.use_submodules == "No" %}
- git clone -b v$CATCH2_VERSION https://github.com/catchorg/Catch2.git
- cd Catch2
- mkdir build
- cd build
- cmake -DBUILD_TESTING=OFF ..
- sudo make install
- make install
- cd ../..
{%- endif %}
script:
Expand All @@ -36,10 +42,15 @@ variables:
- cmake --build .
- ctest


# Note: You can use your own Docker images here that e.g. include relevant
# dependencies and development tools. We choose well-maintained images
# providing up-to-date compiler toolchains.

build-and-test:gcc:
image: conanio/gcc9
image: gcc:14
<<: *template

build-and-test:clang:
image: conanio/clang10
image: silkeh/clang:18
<<: *template

0 comments on commit f717f20

Please sign in to comment.