From bd4efc62f73bfb40ce40a58eb0c3973e7468ac1f Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sat, 16 Sep 2023 17:26:10 +0100 Subject: [PATCH] use conda activate in appveyor [actions skip] --- .appveyor.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 268db2b143..8e56e39b94 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -35,20 +35,25 @@ build_script: - for /D %%d in (C:\Miniconda*-x64) do set MINICONDA=%%d - echo Using Miniconda %MINICONDA% - "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH%" - - "set PYTHON=MINICONDA%\\python.exe" # install parallelproj and Python stuff - conda install -c conda-forge -yq libparallelproj swig numpy pytest + - CALL conda.bat activate base + - python --version - mkdir build - mkdir install - cd build - - cmake.exe .. -DCMAKE_INSTALL_PREFIX="C:\projects\stir\install" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% -DSTIR_OPENMP:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=OFF -DBUILD_SWIG_PYTHON:BOOL=ON -DPython_EXECUTABLE="%PYTHON%" + - cmake.exe .. -DCMAKE_INSTALL_PREFIX="C:\projects\stir\install" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% -DSTIR_OPENMP:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=OFF -DBUILD_SWIG_PYTHON:BOOL=ON - cmake.exe --build . --config %CONFIGURATION% - cmake.exe --build . --target install --config %CONFIGURATION% + - conda deactivate test_script: - cd C:\projects\stir\build + - CALL conda.bat activate base + - python --version - ctest --output-on-failure -C %CONFIGURATION% - cd ..\recon_test_pack - run_tests --nointbp "C:\projects\stir\install\bin\" - cd ..\src - "%PYTHON% -m pytest ." + - conda deactivate