Skip to content

Commit

Permalink
use conda activate in appveyor
Browse files Browse the repository at this point in the history
[actions skip]
  • Loading branch information
KrisThielemans committed Sep 16, 2023
1 parent 39a6b50 commit bd4efc6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd4efc6

Please sign in to comment.