diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-01-21 09:50:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 09:50:47 +0100 |
commit | a7ec48c56b16c1197cfad83706e643b07d2d6b56 (patch) | |
tree | df5165c3cf0034dadeb7fb31c9fb75a01f072510 /.appveyor.yml | |
parent | de5aa9c891ef13c9fc2b2635bcd27ab873b0057b (diff) |
Experiment azure ci instead of appveyor for windows (#574)
* Remove appveyor build
Windows builds and tests under azure:
* Add windows build in azure yaml file and rename pipelines
* Remove '-j 4' as not used
* Separate c++ and python compilation (tests are easier to be launched under src/python)
* Explain the change in tests_strategy
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 33458a28..00000000 --- a/.appveyor.yml +++ /dev/null @@ -1,80 +0,0 @@ -image: - - Visual Studio 2019 - -build: - parallel: true - verbosity: detailed - -configuration: - - Release - -environment: - # update the vcpkg cache even if build fails - # APPVEYOR_SAVE_CACHE_ON_ERROR: true - PYTHON: "C:\\Python39-x64" - PYTHONPATH: "C:\\Python39-x64\\lib\\site-packages" - CMAKE_VCPKG_FLAGS: -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=c:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake - - matrix: - - target: Examples - CMAKE_FLAGS: -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF - - - target: UnitaryTests - CMAKE_FLAGS: -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF - - - target: Utilities - CMAKE_FLAGS: -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF - - - target: Python - CMAKE_FLAGS: -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON - - -#cache: -# - c:\Tools\vcpkg\installed -# - '%LOCALAPPDATA%\pip\Cache' - -init: - - echo %target% - -install: - - git submodule update --init - - vcpkg update - - vcpkg remove --outdated - - vcpkg upgrade --no-dry-run - - vcpkg install boost-filesystem:x64-windows boost-test:x64-windows boost-program-options:x64-windows tbb:x64-windows eigen3:x64-windows cgal:x64-windows - - dir "C:\Tools\vcpkg\installed\x64-windows\bin\" - - vcpkg integrate install - - CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 - - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - - python --version - - pip --version - - python -m pip install --upgrade pip - - python -m pip install --upgrade setuptools - - python -m pip install -r ext\gudhi-deploy\build-requirements.txt - # No PyKeOps on windows, let's workaround this one. - - for /F "tokens=*" %%A in (ext\gudhi-deploy\test-requirements.txt) do python -m pip install %%A - - dir "c:\python39-x64\lib\site-packages" - - dir "%LOCALAPPDATA%\pip\Cache" - - python -c "from scipy import spatial; print(spatial.cKDTree)" - -build_script: - - mkdir build - - cd build - - cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release %CMAKE_FLAGS% %CMAKE_VCPKG_FLAGS% .. - - if [%target%]==[Python] ( - cd src\python & - dir . & - type setup.py & - copy "C:\Tools\vcpkg\installed\x64-windows\bin\mpfr-6.dll" ".\gudhi\" & - copy "C:\Tools\vcpkg\installed\x64-windows\bin\gmp.dll" ".\gudhi\" & - copy "C:\Tools\vcpkg\installed\x64-windows\bin\tbb.dll" ".\gudhi\" & - copy "C:\Tools\vcpkg\installed\x64-windows\bin\tbbmalloc.dll" ".\gudhi\" & - python setup.py build_ext --inplace & - SET PYTHONPATH=%CD%;%PYTHONPATH% & - echo %PYTHONPATH% & - ctest -j 1 --output-on-failure -C Release - ) else ( - dir . & - MSBuild GUDHIdev.sln /m /p:Configuration=Release /p:Platform=x64 & - ctest -j 1 --output-on-failure -C Release -E diff_files - ) |