Skip to content
Snippets Groups Projects
Commit df5e765a authored by Simon Praetorius's avatar Simon Praetorius
Browse files

improve the ci script

parent 6993dd94
No related branches found
No related tags found
1 merge request!2Allow nanoflann and alglib to be external packages
Pipeline #75916 failed
...@@ -3,8 +3,12 @@ before_script: &before ...@@ -3,8 +3,12 @@ before_script: &before
- duneci-install-module https://gitlab.dune-project.org/extensions/dune-alugrid.git - duneci-install-module https://gitlab.dune-project.org/extensions/dune-alugrid.git
- duneci-install-module https://gitlab.dune-project.org/extensions/dune-foamgrid.git - duneci-install-module https://gitlab.dune-project.org/extensions/dune-foamgrid.git
- duneci-install-module https://gitlab.dune-project.org/extensions/dune-vtk.git - duneci-install-module https://gitlab.dune-project.org/extensions/dune-vtk.git
- git config --global url."https://ci:${NANOFLANN_ACCESS_TOKEN}@gitlab.dune-project.org/simon.praetorius/nanoflann.git".insteadOf https://github.com/jlblancoc/nanoflann.git - git clone https://ci:${NANOFLANN_ACCESS_TOKEN}@gitlab.dune-project.org/simon.praetorius/nanoflann.git /tmp/nanoflann
- git clone https://ci:${ALGLIB_ACCESS_TOKEN}@gitlab.dune-project.org/simon.praetorius/alglib.git /duneci/libs/alglib - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_INSTALL_PREFIX=/duneci/lib/nanoflann -B /tmp/nanoflann-build -S /tmp/nanoflann
- cmake --build /tmp/nanoflann-build && cmake --install /tmp/nanoflann-build
- git clone https://ci:${ALGLIB_ACCESS_TOKEN}@gitlab.dune-project.org/simon.praetorius/alglib.git /tmp/alglib
- cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_INSTALL_PREFIX=/duneci/lib/alglib -B /tmp/alglib-build -S /tmp/alglib
- cmake --build /tmp/alglib-build && cmake --install /tmp/alglib-build
# Test with the master branch of the dependencies # Test with the master branch of the dependencies
...@@ -13,7 +17,7 @@ dune:git gcc-12 C++20: ...@@ -13,7 +17,7 @@ dune:git gcc-12 C++20:
image: registry.dune-project.org/docker/ci/dune:git-debian-12-gcc-12-20 image: registry.dune-project.org/docker/ci/dune:git-debian-12-gcc-12-20
tags: [duneci] tags: [duneci]
variables: variables:
DUNECI_CMAKE_FLAGS: -Dalglib_SOURCE_DIR=/duneci/libs/alglib DUNECI_CMAKE_FLAGS: -Dalglib_DIR=/duneci/libs/alglib/share/cmake/alglib -Dnanoflann_DIR=/duneci/libs/nanoflann/share/cmake/nanoflann
before_script: before_script:
- *before - *before
script: duneci-standard-test script: duneci-standard-test
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