ci: Add MSVC v71 NMake nightly CI job
This commit is contained in:
parent
dac334e35c
commit
11903f1b5f
@ -783,6 +783,20 @@ test:windows-borland5.8:
|
||||
variables:
|
||||
CMAKE_CI_JOB_NIGHTLY: "true"
|
||||
|
||||
test:windows-msvc-v71-nmake:
|
||||
extends:
|
||||
- .windows_msvc_v71_nmake
|
||||
- .cmake_test_windows_nmake
|
||||
- .windows_builder_ext_tags
|
||||
- .cmake_junit_artifacts
|
||||
- .run_dependent
|
||||
dependencies:
|
||||
- test:windows-vs2019-x64-ninja
|
||||
needs:
|
||||
- test:windows-vs2019-x64-ninja
|
||||
variables:
|
||||
CMAKE_CI_JOB_NIGHTLY: "true"
|
||||
|
||||
test:windows-openwatcom1.9:
|
||||
extends:
|
||||
- .windows_openwatcom1.9
|
||||
|
2
.gitlab/ci/configure_windows_msvc_common.cmake
Normal file
2
.gitlab/ci/configure_windows_msvc_common.cmake
Normal file
@ -0,0 +1,2 @@
|
||||
set(configure_no_sccache 1)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")
|
1
.gitlab/ci/configure_windows_msvc_v71_nmake.cmake
Normal file
1
.gitlab/ci/configure_windows_msvc_v71_nmake.cmake
Normal file
@ -0,0 +1 @@
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_windows_msvc_common.cmake")
|
31
.gitlab/ci/msvc.ps1
Executable file
31
.gitlab/ci/msvc.ps1
Executable file
@ -0,0 +1,31 @@
|
||||
$erroractionpreference = "stop"
|
||||
|
||||
if ("$env:CMAKE_CONFIGURATION".Contains("msvc_v71")) {
|
||||
# MSVC v71 Toolset from Visual Studio 7 .NET 2003
|
||||
$filename = "msvc-v71-1"
|
||||
$sha256sum = "01637CDC670EA5D631E169E286ACDD1913A124E3C5AF4C3DFB37657ADE8BBA9F"
|
||||
$vcvars = "Vc7\bin\vcvars32.bat"
|
||||
} else {
|
||||
throw ('unknown CMAKE_CONFIGURATION: ' + "$env:CMAKE_CONFIGURATION")
|
||||
}
|
||||
$tarball = "$filename.zip"
|
||||
|
||||
$outdir = $pwd.Path
|
||||
$outdir = "$outdir\.gitlab"
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
# This URL is only visible inside of Kitware's network. See above filename table.
|
||||
Invoke-WebRequest -Uri "https://cmake.org/files/dependencies/internal/$tarball" -OutFile "$outdir\$tarball"
|
||||
$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
|
||||
if ($hash.Hash -ne $sha256sum) {
|
||||
exit 1
|
||||
}
|
||||
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
|
||||
Move-Item -Path "$outdir\$filename" -Destination "$outdir\msvc"
|
||||
|
||||
$bat = Get-Content -path "$outdir\msvc\$vcvars.in" -Raw
|
||||
$bat = $bat -replace "@VS_ROOT@","$outdir\msvc"
|
||||
$bat | Set-Content -path "$outdir\msvc\$vcvars"
|
||||
|
||||
Set-Item -Force -Path "env:VCVARSALL" -Value "$outdir\msvc\$vcvars"
|
@ -72,6 +72,20 @@
|
||||
variables:
|
||||
CMAKE_CONFIGURATION: windows_borland5.8
|
||||
|
||||
.windows_nmake:
|
||||
extends: .windows
|
||||
|
||||
variables:
|
||||
CMAKE_GENERATOR: "NMake Makefiles"
|
||||
CMAKE_CI_BUILD_TYPE: Release
|
||||
CMAKE_CI_NIGHTLY_IGNORE_DEPS: "true"
|
||||
|
||||
.windows_msvc_v71_nmake:
|
||||
extends: .windows_nmake
|
||||
|
||||
variables:
|
||||
CMAKE_CONFIGURATION: windows_msvc_v71_nmake
|
||||
|
||||
.windows_openwatcom:
|
||||
extends: .windows
|
||||
|
||||
@ -171,6 +185,16 @@
|
||||
|
||||
interruptible: true
|
||||
|
||||
.cmake_test_windows_nmake:
|
||||
stage: test-ext
|
||||
|
||||
script:
|
||||
- Invoke-Expression -Command .gitlab/ci/msvc.ps1
|
||||
- Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
|
||||
- build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_test_external.cmake
|
||||
|
||||
interruptible: true
|
||||
|
||||
.cmake_test_windows_openwatcom:
|
||||
stage: test-ext
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user