summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2020-05-06 07:03:59 +0200
committerGitHub <noreply@github.com>2020-05-06 07:03:59 +0200
commit412469e0e96b4091d3760400ea251b2bf180f1b2 (patch)
tree3bf0cbdcbe4c10beb95b2c42575c7b44a45e0ea9
parent81a4e6ff3ba732bd4e061fc5443ffed52b694e01 (diff)
parent8da9158e9a2ffb128eb1b5b05d4e8574ff70d771 (diff)
Merge pull request #303 from VincentRouvreau/conda_install_for_osx
Build with conda as pip with brew fails
-rw-r--r--azure-pipelines.yml43
1 files changed, 21 insertions, 22 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 95b15db2..7b5334a7 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -4,35 +4,34 @@ jobs:
displayName: "Build and test"
timeoutInMinutes: 0
cancelTimeoutInMinutes: 60
-
- strategy:
- matrix:
- macOSrelease:
- imageName: 'macos-10.14'
- CMakeBuildType: Release
- customInstallation: 'brew update && brew install graphviz doxygen boost eigen gmp mpfr tbb cgal'
-
pool:
- vmImage: $(imageName)
-
+ vmImage: macOS-10.14
+ variables:
+ pythonVersion: '3.6'
+ cmakeBuildType: Release
+ customInstallation: 'brew update && brew install graphviz doxygen boost eigen gmp mpfr tbb cgal'
+
steps:
- - task: UsePythonVersion@0
- inputs:
- versionSpec: '3.7'
- architecture: 'x64'
+ - bash: echo "##vso[task.prependpath]$CONDA/bin"
+ displayName: Add conda to PATH
- - script: |
- $(customInstallation)
- git submodule update --init
- python -m pip install --upgrade pip
+ - 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'
- - script: |
+ - 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
+ 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 8 --output-on-failure -E sphinx # remove sphinx build as it fails
+ ctest -j 4 --output-on-failure -E sphinx # remove sphinx build as it fails
displayName: 'Build, test and documentation generation'