Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use circleCI anchors to DRY. Activate assertions on all tests #1163

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 52 additions & 63 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
version: 2.0
jobs:
### With all third parties

submodules: &checkout_submodules
name: Checkout submodules
command: |
git submodule sync
git submodule update --init

assertions: &activate_assertions
name: Activate assertions
command: |
echo 'export CXXFLAGS="-UNDEBUG"' >> "$BASH_ENV"
echo 'export CFLAGS="-UNDEBUG"' >> "$BASH_ENV"
source "$BASH_ENV"

jobs:
examples:
docker:
# cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_circleci_image
- image: gudhi/ci_for_gudhi:2024.12.01
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test examples
command: |
Expand All @@ -28,10 +39,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test unitary tests
command: |
Expand All @@ -47,10 +57,7 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
name: Build and test unitary tests
command: |
Expand All @@ -66,10 +73,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test utilities
command: |
Expand All @@ -86,10 +92,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test python module. Generates and tests the python documentation
command: |
Expand Down Expand Up @@ -121,10 +126,7 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
name: Generates the C++ documentation with doxygen
command: |
Expand All @@ -150,11 +152,6 @@ jobs:
- image: gudhi/doxygen_for_gudhi:2024.12.01
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
- run:
name: Test the LaTeX bibliography files
command: |
Expand All @@ -174,10 +171,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test examples without cgal and eigen
command: |
Expand All @@ -193,10 +189,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test unitary tests without cgal and eigen
command: |
Expand All @@ -212,10 +207,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test utilities without cgal and eigen
command: |
Expand All @@ -231,10 +225,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test python module without cgal and eigen
command: |
Expand All @@ -253,10 +246,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test examples without cgal
command: |
Expand All @@ -279,10 +271,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test unitary tests without cgal
command: |
Expand All @@ -305,10 +296,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test utilities without cgal
command: |
Expand All @@ -331,10 +321,9 @@ jobs:
steps:
- checkout
- run:
name: Checkout submodules
command: |
git submodule sync
git submodule update --init
<<: *checkout_submodules
- run:
<<: *activate_assertions
- run:
name: Build and test python module without cgal
command: |
Expand Down
Loading