Skip to content
Snippets Groups Projects
Verified Commit 5a2bacd6 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Build gui on Windows.

parent c2aaf10f
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ variables: ...@@ -11,6 +11,7 @@ variables:
include: include:
- local: '/scripts/ci/extends/container-maker-setup.yml' - local: '/scripts/ci/extends/container-maker-setup.yml'
- local: '/scripts/ci/extends/vs2019-environment.yml'
- local: '/scripts/ci/jobs/pre-commit.yml' - local: '/scripts/ci/jobs/pre-commit.yml'
- local: '/scripts/ci/jobs/build_image.yml' - local: '/scripts/ci/jobs/build_image.yml'
- local: '/scripts/ci/jobs/build.yml' - local: '/scripts/ci/jobs/build.yml'
......
.vs2019-environment:
before_script:
# Load VS environment
- |
pushd $env:VS160COMNTOOLS
cmd /c "VsDevCmd.bat -arch=amd64 -host_arch=amd64&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
Write-Host "`nVisual Studio Command Prompt variables set." -ForegroundColor Yellow
...@@ -2,34 +2,32 @@ build win: ...@@ -2,34 +2,32 @@ build win:
stage: test stage: test
tags: tags:
- windows - windows
variables:
before_script: BUILD_DIR: "build-win"
# Load VS environment extends: .vs2019-environment
- |
pushd $env:VS160COMNTOOLS
cmd /c "VsDevCmd.bat -arch=amd64 -host_arch=amd64&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
Write-Host "`nVisual Studio Command Prompt variables set." -ForegroundColor Yellow
- mkdir -p build-win
- cd build-win
script: script:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_BUILD_PROCESSES=GroundwaterFlow - mkdir -p $BUILD_DIR
- cmake --build . - cd $BUILD_DIR
- |
cmake .. -G Ninja `
-DCMAKE_BUILD_TYPE=Release `
-DOGS_BUILD_PROCESSES=GroundwaterFlow `
-DOGS_USE_PYTHON=ON `
-DOGS_BUILD_GUI=ON `
-DOGS_BUILD_UTILS=ON `
-DOGS_BUILD_SWMM=ON `
-DOGS_USE_NETCDF=ON
- cmake --build . --target tests - cmake --build . --target tests
- cmake --build . --target ctest - cmake --build . --target ctest
- cp Testing/**/Test.xml Tests/ctest.xml - cp Testing/**/Test.xml Tests/ctest.xml
- cmake --build .
artifacts: artifacts:
paths: paths:
- build-win/Tests/ctest.xml - $BUILD_DIR/Tests/ctest.xml
- build-win/Tests/testrunner.xml - $BUILD_DIR/Tests/testrunner.xml
expire_in: 1 week expire_in: 1 week
reports: reports:
junit: junit:
- build-win/Tests/testrunner.xml - $BUILD_DIR/Tests/testrunner.xml
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