summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-05-04 19:23:40 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-05-04 19:23:40 +0200
commitd2a9aed9ada419b7715a77322ad17ddf3535d133 (patch)
tree122fe0cb65d948a3928429851a09f9aec2cbc6dc /azure-pipelines.yml
parent81a4e6ff3ba732bd4e061fc5443ffed52b694e01 (diff)
Try to build with conda as brew fails
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml35
1 files changed, 18 insertions, 17 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 95b15db2..fccb7d57 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -4,35 +4,36 @@ jobs:
displayName: "Build and test"
timeoutInMinutes: 0
cancelTimeoutInMinutes: 60
-
+ pool:
+ vmImage: macOS-10.14
strategy:
matrix:
- macOSrelease:
- imageName: 'macos-10.14'
- CMakeBuildType: Release
- customInstallation: 'brew update && brew install graphviz doxygen boost eigen gmp mpfr tbb cgal'
+ Python36:
+ python.version: '3.6'
+ Python37:
+ python.version: '3.7'
+ Python38:
+ python.version: '3.8'
- pool:
- vmImage: $(imageName)
-
steps:
- - task: UsePythonVersion@0
- inputs:
- versionSpec: '3.7'
- architecture: 'x64'
+ - bash: echo "##vso[task.prependpath]$CONDA/bin"
+ displayName: Add conda to PATH
+
+ - bash: conda create --yes --quiet --name gudhi_build_env
+ displayName: Create Anaconda environment
- - script: |
- $(customInstallation)
+ - bash: |
+ source activate gudhi_build_env
+ conda install --yes --quiet --name gudhi_build_env python=$PYTHON_VERSION
git submodule update --init
- python -m pip install --upgrade pip
python -m pip install --user -r .github/build-requirements.txt
python -m pip install --user -r .github/test-requirements.txt
displayName: 'Install build dependencies'
- - script: |
+ - bash: |
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
make doxygen
- ctest -j 8 --output-on-failure -E sphinx # remove sphinx build as it fails
+ ctest -j 8 --output-on-failure # -E sphinx remove sphinx build as it fails
displayName: 'Build, test and documentation generation'