Skip to content
5 changes: 2 additions & 3 deletions ci/dockerfiles/windows/Dockerfile-dhydro-test-environment
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN Start-Process python-3.12.7-amd64.exe -ArgumentList '/quiet InstallAllUsers=
RUN Remove-Item C:\\python-3.12.7-amd64.exe
RUN New-Item -ItemType SymbolicLink -Path 'C:\\Program Files\\Python312\\python3.exe' -Target 'C:\\Program Files\\Python312\\python.exe'

ADD win-requirements.txt C:\\temp\\win-requirements.txt
ADD deltares_testbench C:\\deltares_testbench

RUN & 'C:\\Program Files\\Python312\\python.exe' -m pip install --upgrade pip; \
& 'C:\\Program Files\\Python312\\python.exe' -m pip install -r C:\\temp\\win-requirements.txt; \
Remove-Item C:\\temp\\win-requirements.txt
& 'C:\\Program Files\\Python312\\python.exe' -m pip install -r C:\\deltares_testbench\\pip\\win-requirements.txt
4 changes: 2 additions & 2 deletions ci/teamcity/Delft3D/windows/test.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object WindowsTest : BuildType({
python {
name = "Run TestBench.py"
id = "RUNNER_testbench"
workingDir = "test/deltares_testbench/"
workingDir = "C:\\deltares_testbench"
command = file {
filename = "TestBench.py"
scriptArguments = """
Expand All @@ -95,7 +95,7 @@ object WindowsTest : BuildType({
dockerImage = "containers.deltares.nl/delft3d-dev/test/delft3d-test-environment-windows:%container.tag%"
dockerImagePlatform = PythonBuildStep.ImagePlatform.Windows
dockerPull = true
dockerRunParameters = "--memory %teamcity.agent.hardware.memorySizeMb%m --cpus %teamcity.agent.hardware.cpuCount%"
dockerRunParameters = "-v %system.teamcity.build.checkoutDir%\\test\\deltares_testbench\\data\\engines:C:\\deltares_testbench\\data\\engines --memory %teamcity.agent.hardware.memorySizeMb%m --cpus %teamcity.agent.hardware.cpuCount%"
}
script {
name = "Copy cases"
Expand Down
2 changes: 1 addition & 1 deletion ci/teamcity/Delft3D/windows/testEnvironment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object WindowsTestEnvironment : BuildType({

# Copy the files from the source to the destination
Copy-Item -Path "\\directory.intra\project\d-hydro\dsc-tools\toolchain2024\python-3.12.7-amd64.exe" -Destination ${'$'}destinationDir
Copy-Item -Path "test\\deltares_testbench\\pip\\win-requirements.txt" -Destination ${'$'}destinationDir
Copy-Item -Path "test\\deltares_testbench" -Destination ${'$'}destinationDir -Recurse

# List all the files in the destination directory
Get-ChildItem -Path ${'$'}destinationDir
Expand Down