summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-05-20 08:46:13 +0200
committerGard Spreemann <gspr@nonempty.org>2020-05-20 08:46:13 +0200
commit2e879a40ee1bda90526d87f131b77ed365f3676b (patch)
treea3da06477fe2e8f3e0aa5c0be16f2eecb5bcaf9d /azure-pipelines.yml
parentb521123d85ae166e01c814292370d63856251326 (diff)
parent9b3079646ee3f6a494b83e864b3e10b8a93597d0 (diff)
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 00000000..7b5334a7
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,37 @@
+jobs:
+
+ - job: 'Test'
+ displayName: "Build and test"
+ timeoutInMinutes: 0
+ cancelTimeoutInMinutes: 60
+ pool:
+ vmImage: macOS-10.14
+ variables:
+ pythonVersion: '3.6'
+ cmakeBuildType: Release
+ customInstallation: 'brew update && brew install graphviz doxygen boost eigen gmp mpfr tbb cgal'
+
+ steps:
+ - bash: echo "##vso[task.prependpath]$CONDA/bin"
+ displayName: Add conda to PATH
+
+ - bash: sudo conda create --yes --quiet --name gudhi_build_env
+ displayName: Create Anaconda environment
+
+ - bash: |
+ source activate gudhi_build_env
+ sudo conda install --yes --quiet --name gudhi_build_env python=$(pythonVersion)
+ python -m pip install --user -r .github/build-requirements.txt
+ python -m pip install --user -r .github/test-requirements.txt
+ $(customInstallation)
+ displayName: 'Install build dependencies'
+ - bash: |
+ source activate gudhi_build_env
+ git submodule update --init
+ mkdir build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE:STRING=$(cmakeBuildType) -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=ON -DPython_ADDITIONAL_VERSIONS=3 ..
+ make -j 4
+ make doxygen
+ ctest -j 4 --output-on-failure -E sphinx # remove sphinx build as it fails
+ displayName: 'Build, test and documentation generation'