From 34bf483f57d22edcd86f1ed4dc8b34b0d630e943 Mon Sep 17 00:00:00 2001 From: Vincent Rouvreau Date: Wed, 4 Dec 2024 11:03:44 +0100 Subject: [PATCH 1/2] New docker images to fix debug_tests with ubuntu 24. Now works in a virtual env --- .circleci/config.yml | 66 +++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9bd2f4fc7..c4c4683b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ jobs: examples: docker: # cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_circleci_image - - image: gudhi/ci_for_gudhi:2024.10.01 + - image: gudhi/ci_for_gudhi:2024.12.01 steps: - checkout - run: @@ -24,7 +24,7 @@ jobs: tests: docker: - - image: gudhi/ci_for_gudhi:2024.10.01 + - image: gudhi/ci_for_gudhi:2024.12.01 steps: - checkout - run: @@ -43,7 +43,7 @@ jobs: debug_tests: docker: - - image: gudhi/ci_for_gudhi:2024.10.01 + - image: gudhi/ci_for_gudhi:2024.12.01 steps: - checkout - run: @@ -62,7 +62,7 @@ jobs: utils: docker: - - image: gudhi/ci_for_gudhi:2024.10.01 + - image: gudhi/ci_for_gudhi:2024.12.01 steps: - checkout - run: @@ -81,7 +81,7 @@ jobs: python: docker: - - image: gudhi/ci_for_gudhi:2024.10.01 + - image: gudhi/ci_for_gudhi:2024.12.01 resource_class: large # Delaunay complex requires about 5 Gb of RAM to compile steps: - checkout @@ -100,13 +100,13 @@ jobs: cd version cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON -DWITH_GUDHI_REMOTE_TEST=ON . cd python - python3 setup.py build_ext --inplace + python setup.py build_ext --inplace ctest --output-on-failure make sphinx cp -R sphinx /tmp/sphinx - python3 setup.py install - python3 setup.py clean --all - python3 -B -m pytest test/*.py --cov-report html --cov=gudhi + python setup.py install + python setup.py clean --all + python -B -m pytest test/*.py --cov-report html --cov=gudhi cp -R htmlcov /tmp/htmlcov - store_artifacts: path: /tmp/sphinx @@ -117,7 +117,7 @@ jobs: doxygen: docker: - - image: gudhi/doxygen_for_gudhi:2024.10.01 + - image: gudhi/doxygen_for_gudhi:2024.12.01 steps: - checkout - run: @@ -147,7 +147,7 @@ jobs: bibliography: docker: - - image: gudhi/doxygen_for_gudhi:2024.10.01 + - image: gudhi/doxygen_for_gudhi:2024.12.01 steps: - checkout - run: @@ -170,7 +170,7 @@ jobs: examples_without_cgal_eigen: docker: # cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_circleci_image_without_cgal - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -189,7 +189,7 @@ jobs: tests_without_cgal_eigen: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -208,7 +208,7 @@ jobs: utils_without_cgal_eigen: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -227,7 +227,7 @@ jobs: python_without_cgal_eigen: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -242,14 +242,14 @@ jobs: cd build cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON .. cd src/python - python3 setup.py build_ext --inplace + python setup.py build_ext --inplace ctest --output-on-failure ### With all third parties, except CGAL examples_without_cgal: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -260,15 +260,19 @@ jobs: - run: name: Build and test examples without cgal command: | + cd /eigen-3.4.0 + cmake . + make install + cd - mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=/eigen-3.3.9 -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. + cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. make all ctest --output-on-failure tests_without_cgal: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -279,15 +283,19 @@ jobs: - run: name: Build and test unitary tests without cgal command: | + cd /eigen-3.4.0 + cmake . + make install + cd - mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=/eigen-3.3.9 -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. + cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. make all ctest --output-on-failure utils_without_cgal: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -298,15 +306,19 @@ jobs: - run: name: Build and test utilities without cgal command: | + cd /eigen-3.4.0 + cmake . + make install + cd - mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=/eigen-3.3.9 -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF .. + cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF .. make all ctest --output-on-failure python_without_cgal: docker: - - image: gudhi/ci_for_gudhi_wo_cgal:2024.10.01 + - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01 steps: - checkout - run: @@ -317,11 +329,15 @@ jobs: - run: name: Build and test python module without cgal command: | + cd /eigen-3.4.0 + cmake . + make install + cd - mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=/eigen-3.3.9 -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON .. + cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON .. cd src/python - python3 setup.py build_ext --inplace + python setup.py build_ext --inplace ctest --output-on-failure workflows: From 7de6aad4eeb7f2dc7c202cc6121c8cff7bbd1bde Mon Sep 17 00:00:00 2001 From: Vincent Rouvreau Date: Wed, 4 Dec 2024 11:38:34 +0100 Subject: [PATCH 2/2] cmake requires build dir --- .circleci/config.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c4c4683b3..fdd5a131f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -260,10 +260,13 @@ jobs: - run: name: Build and test examples without cgal command: | + cur_dir=`pwd` cd /eigen-3.4.0 - cmake . + mkdir build + cd build + cmake .. make install - cd - + cd $cur_dir mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. @@ -283,10 +286,13 @@ jobs: - run: name: Build and test unitary tests without cgal command: | + cur_dir=`pwd` cd /eigen-3.4.0 - cmake . + mkdir build + cd build + cmake .. make install - cd - + cd $cur_dir mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF .. @@ -306,10 +312,13 @@ jobs: - run: name: Build and test utilities without cgal command: | + cur_dir=`pwd` cd /eigen-3.4.0 - cmake . + mkdir build + cd build + cmake .. make install - cd - + cd $cur_dir mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF .. @@ -329,10 +338,13 @@ jobs: - run: name: Build and test python module without cgal command: | + cur_dir=`pwd` cd /eigen-3.4.0 - cmake . + mkdir build + cd build + cmake .. make install - cd - + cd $cur_dir mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON ..