Skip to content
Snippets Groups Projects
Commit 592cf19f authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CI Win modify PATH and PYTHONPATH for ctest command only

parent 8039e869
No related branches found
No related tags found
1 merge request!2517CI Win modify PATH and PYTHONPATH for ctest command only
Pipeline #139889 passed
......@@ -108,9 +108,6 @@ windows:
- $QTCMake_DIR = "$QT_MSVC_DIR/lib/cmake"
- $PY_PLATFORM_DIR = "C:/Users/admin/.pyenv/pyenv-win/versions/3.11.5/"
- $BUILD_DIR = "build"
# change the system PATH temporarily (needed for tests)
- $env:PYTHONPATH += "$CI_PROJECT_DIR/build/lib"
- $env:PATH = "$QT_MSVC_DIR/bin;$env:PATH"
# list powershell properties
- echo "# Path '<$Env:Path>'"
- echo "# PythonPath '<$Env:PYTHONPATH>'"
......@@ -136,7 +133,10 @@ windows:
- pwd
- if($CI_PIPELINE_SOURCE -eq "schedule") { cmake --build . --target clean; echo "redundant target purge done" }
- cmake --build . -j20 --config Release
- ctest -C Release --parallel 20 --output-on-failure
- |
$env:PYTHONPATH += "$CI_PROJECT_DIR/build/lib";
$env:PATH = "$QT_MSVC_DIR/bin;$env:PATH";
ctest -C Release --parallel 20 --output-on-failure
- cpack -C Release -B ./installer .
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment