summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
blob: b3b0ea7f8feaa6a862099534ceb7e3c1cd6806f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
jobs:
  
  - job: 'Test'
    displayName: "Build and test"
    timeoutInMinutes: 0
    cancelTimeoutInMinutes: 60
    pool:
      vmImage: macOS-10.14
    strategy:
      matrix:
        Python36:
          python.version: '3.6'
          CMakeBuildType: Release
        #Python37:
        #  python.version: '3.7'
        #Python38:
        #  python.version: '3.8'

    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=$PYTHON_VERSION
        sudo conda update --yes --quiet -n base -c defaults conda
        sudo conda install --yes -c conda-forge doxygen eigen boost-cpp=1.70.0 cgal-cpp>=5.0
        python -m pip install --user -r .github/build-requirements.txt
        python -m pip install --user -r .github/test-requirements.txt
      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
        make doxygen
        ctest -j 8 --output-on-failure # -E sphinx remove sphinx build as it fails
      displayName: 'Build, test and documentation generation'