Skip to content

Commit

Permalink
Build only once on windows but disabled unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozaq committed Sep 12, 2023
1 parent 67b175d commit 4f5851c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
17 changes: 9 additions & 8 deletions scripts/ci/build_msvc_python310.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
call C:\Python\Python310\python.exe -m venv venv310
call venv310\Scripts\activate.bat
pip install -r requirements.txt
mkdir build
set PYTHONPATH=%cd%\python_modules\jupedsim;%cd%\build\lib\Release
cd build
echo %PYTHONPATH%
cmake .. -DBUILD_TESTS=ON -DCMAKE_UNITY_BUILD=ON
cmake --build . --config Release
cmake --build . --config Release --target unittests
cd ..
:: Build time in CI is currently too long to justify building twice just for unit tests
::mkdir build
::set PYTHONPATH=%cd%\python_modules\jupedsim;%cd%\build\lib\Release
::cd build
::echo %PYTHONPATH%
::cmake .. -DBUILD_TESTS=ON -DCMAKE_UNITY_BUILD=ON
::cmake --build . --config Release
::cmake --build . --config Release --target unittests
::cd ..
python -m build -w
17 changes: 9 additions & 8 deletions scripts/ci/build_msvc_python311.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
call C:\Python\Python311\python.exe -m venv venv311
call venv311\Scripts\activate.bat
pip install -r requirements.txt
mkdir build
set PYTHONPATH=%cd%\python_modules\jupedsim;%cd%\build\lib\Release
cd build
echo %PYTHONPATH%
cmake .. -DBUILD_TESTS=ON -DCMAKE_UNITY_BUILD=ON
cmake --build . --config Release
cmake --build . --config Release --target unittests
cd ..
:: Build time in CI is currently too long to justify building twice just for unit tests
::mkdir build
::set PYTHONPATH=%cd%\python_modules\jupedsim;%cd%\build\lib\Release
::cd build
::echo %PYTHONPATH%
::cmake .. -DBUILD_TESTS=ON -DCMAKE_UNITY_BUILD=ON
::cmake --build . --config Release
::cmake --build . --config Release --target unittests
::cd ..
python -m build -w

0 comments on commit 4f5851c

Please sign in to comment.