Set env vars so MS-MPI tests are run
Import MS-MPI env vars set by installer in registry to environment Skip testing we can apply a version constraint to MPI when version isn't known (as is the case for MS-MPI) (These tests have never worked in appveyor)
This commit is contained in:
parent
9717fb8164
commit
efa55c9e1c
|
@ -39,6 +39,12 @@ steps:
|
|||
Start-Process msiexec.exe -ArgumentList '/i msmpisdk.msi /quiet' -Wait
|
||||
Start-Process .\MSMpiSetup.exe -ArgumentList '-unattend -full' -Wait
|
||||
|
||||
# import ms-mpi env vars (set by installer)
|
||||
foreach ($p in "MSMPI_INC", "MSMPI_LIB32", "MSMPI_LIB64") {
|
||||
$v = [Environment]::GetEnvironmentVariable($p, "Machine")
|
||||
Set-Content "env:$p" "$v"
|
||||
}
|
||||
|
||||
# add downloads to PATH
|
||||
$env:Path = "$env:SYSTEM_WORKFOLDER;$env:Path"
|
||||
|
||||
|
|
|
@ -44,4 +44,6 @@ if uburesult.returncode() != 0 and add_languages('fortran', required : false)
|
|||
endif
|
||||
|
||||
# Check we can apply a version constraint
|
||||
dependency('mpi', version: '>=@0@'.format(mpic.version()))
|
||||
if mpic.version() != 'unknown'
|
||||
dependency('mpi', version: '>=@0@'.format(mpic.version()))
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue