diff --git a/scripts/appveyor-system-info.ps1 b/scripts/appveyor-system-info.ps1 new file mode 100644 index 000000000..e061c98e2 --- /dev/null +++ b/scripts/appveyor-system-info.ps1 @@ -0,0 +1,13 @@ +$SystemManaged = Get-WmiObject -Class Win32_ComputerSystem | % {$_.AutomaticManagedPagefile} +$total_physicalmem = gwmi Win32_ComputerSystem | % {[Math]::round($_.TotalPhysicalMemory/1MB,0)} +$physical_mem = get-ciminstance -class 'cim_physicalmemory' | % { $_.Capacity/1024/1024} + +$PF =gwmi Win32_PageFileUsage +$PageFileLocation = $PF.Name; +$PageFileSize = $PF.AllocatedBaseSize + +Write-Host "physical memory : $physical_mem" +Write-Host "total physical memory : $total_physicalmem" +Write-Host "page file system managed : $SystemManaged" +Write-Host "page file location : $PageFileLocation" +Write-Host "page file size : $PageFileSize" \ No newline at end of file diff --git a/scripts/build-appveyor.bat b/scripts/build-appveyor.bat index 0cadb5ef8..4bfbe9b22 100644 --- a/scripts/build-appveyor.bat +++ b/scripts/build-appveyor.bat @@ -8,6 +8,7 @@ ECHO NUMBER_OF_PROCESSORS^: %NUMBER_OF_PROCESSORS% ECHO RAM [MB]^: powershell "get-ciminstance -class 'cim_physicalmemory' | %% { $_.Capacity/1024/1024}" IF %ERRORLEVEL% NEQ 0 GOTO ERROR +powershell .\scripts\appveyor-system-info.ps1 ::only build on AppVeyor, if explicitly stated ECHO APPVEYOR_REPO_COMMIT_MESSAGE^: %APPVEYOR_REPO_COMMIT_MESSAGE%