-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master and resolve conflicts in azure-pipeline
- Loading branch information
Showing
43 changed files
with
473 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,100 @@ | ||
jobs: | ||
|
||
- job: 'OSx' | ||
- job: "OSx" | ||
displayName: "Build and test OSx" | ||
timeoutInMinutes: 0 | ||
cancelTimeoutInMinutes: 60 | ||
pool: | ||
vmImage: macOS-latest | ||
variables: | ||
pythonVersion: '3.9' | ||
pythonVersion: "3.9" | ||
cmakeBuildType: Release | ||
|
||
steps: | ||
# Use a specific Python version | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(pythonVersion) | ||
inputs: | ||
versionSpec: $(pythonVersion) | ||
addToPath: true | ||
architecture: 'x64' | ||
# Use a specific Python version | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(pythonVersion) | ||
inputs: | ||
versionSpec: $(pythonVersion) | ||
addToPath: true | ||
architecture: "x64" | ||
|
||
- bash: | | ||
- bash: | | ||
git submodule update --init | ||
python -m pip install --user -r ext/gudhi-deploy/build-requirements.txt | ||
python -m pip install --user -r ext/gudhi-deploy/test-requirements.txt | ||
python -m pip uninstall -y pykeops | ||
brew update || true | ||
brew install ninja graphviz doxygen boost eigen gmp mpfr tbb cgal || true | ||
displayName: 'Install build dependencies' | ||
- bash: | | ||
displayName: 'Install build dependencies' | ||
- bash: | | ||
mkdir build | ||
cd build | ||
which python | ||
cmake -DCMAKE_BUILD_TYPE:STRING=$(cmakeBuildType) -GNinja -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=ON -DWITH_GUDHI_REMOTE_TEST=ON -DPython_EXECUTABLE=$(which python) .. | ||
ninja | ||
ninja doxygen | ||
ctest --output-on-failure | ||
displayName: 'Build, test and documentation generation' | ||
displayName: 'Build, test and documentation generation' | ||
- job: 'Windows' | ||
- job: "Windows" | ||
displayName: "Build and test Windows" | ||
timeoutInMinutes: 0 | ||
cancelTimeoutInMinutes: 60 | ||
pool: | ||
vmImage: windows-latest | ||
variables: | ||
pythonVersion: '3.9' | ||
pythonVersion: "3.9" | ||
cmakeVcpkgFlags: -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=c:\vcpkg\scripts\buildsystems\vcpkg.cmake | ||
cmakeFlags: -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF | ||
|
||
steps: | ||
# Use a specific Python version | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(pythonVersion) | ||
inputs: | ||
versionSpec: $(pythonVersion) | ||
addToPath: true | ||
architecture: 'x64' | ||
# Use a specific Python version | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(pythonVersion) | ||
inputs: | ||
versionSpec: $(pythonVersion) | ||
addToPath: true | ||
architecture: "x64" | ||
|
||
- script: | | ||
git submodule update --init | ||
python -m pip install --user -r ext/gudhi-deploy/build-requirements.txt | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
python -m pip install --user -r ext/gudhi-deploy/test-requirements.txt | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
# Only vcpkg release libs for CI | ||
echo.set(VCPKG_BUILD_TYPE release)>> C:\vcpkg\triplets\x64-windows.cmake | ||
vcpkg install boost-filesystem:x64-windows boost-test:x64-windows boost-program-options:x64-windows tbb:x64-windows eigen3:x64-windows cgal:x64-windows | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
choco install -y ninja --force --force-dependencies | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
displayName: 'Install build dependencies' | ||
- script: | | ||
$ErrorActionPreference = 'Stop' | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release -G "Ninja" -DFORCE_EIGEN_DEFAULT_DENSE_INDEX_TYPE_TO_INT=ON $(cmakeVcpkgFlags) $(cmakeFlags) .. | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
ninja | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
ctest --output-on-failure -C Release -E diff_files | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
for /f %%i in ('where python') do set PYTHON_EXE=%%i | ||
echo %PYTHON_EXE% | ||
cmake -DWITH_GUDHI_PYTHON=ON -DWITH_GUDHI_REMOTE_TEST=ON -DPython_EXECUTABLE=%PYTHON_EXE% . | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
cd src\python | ||
copy "C:\vcpkg\installed\x64-windows\bin\mpfr*.dll" ".\gudhi\" | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
copy "C:\vcpkg\installed\x64-windows\bin\gmp*.dll" ".\gudhi\" | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
copy "C:\vcpkg\installed\x64-windows\bin\tbb*.dll" ".\gudhi\" | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
python setup.py build_ext --inplace | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
SET PYTHONPATH=%CD%;%PYTHONPATH% | ||
echo %PYTHONPATH% | ||
ctest --output-on-failure -C Release | ||
IF %ERRORLEVEL% NEQ 0 EXIT 1 | ||
displayName: 'Build and test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
add_executable_with_targets(Matrix_examples_representative_cycles representative_cycles_from_matrix.cpp TBB::tbb) | ||
add_test(NAME Matrix_examples_representative_cycles COMMAND $<TARGET_FILE:Matrix_examples_representative_cycles>) | ||
add_executable_with_targets(Persistence_matrix_example_representative_cycles_from_matrix example_representative_cycles_from_matrix.cpp TBB::tbb) | ||
add_test(NAME Persistence_matrix_example_representative_cycles_from_matrix COMMAND $<TARGET_FILE:Persistence_matrix_example_representative_cycles_from_matrix>) | ||
|
||
add_executable_with_targets(Matrix_examples_simplex_tree_matrix simplex_tree_to_matrix.cpp TBB::tbb) | ||
add_test(NAME Matrix_examples_simplex_tree_matrix COMMAND $<TARGET_FILE:Matrix_examples_simplex_tree_matrix>) | ||
add_executable_with_targets(Persistence_matrix_example_simplex_tree_to_matrix example_simplex_tree_to_matrix.cpp TBB::tbb) | ||
add_test(NAME Persistence_matrix_example_simplex_tree_to_matrix COMMAND $<TARGET_FILE:Persistence_matrix_example_simplex_tree_to_matrix>) | ||
|
||
add_executable_with_targets(Matrix_examples_field_operations example_field_operations.cpp TBB::tbb) | ||
add_test(NAME Matrix_examples_field_operations COMMAND $<TARGET_FILE:Matrix_examples_field_operations>) | ||
add_executable_with_targets(Persistence_matrix_example_field_operations example_field_operations.cpp TBB::tbb) | ||
add_test(NAME Persistence_matrix_example_field_operations COMMAND $<TARGET_FILE:Persistence_matrix_example_field_operations>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.