forked from MSP-Greg/av-gem-build-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.ps1
47 lines (40 loc) · 1.56 KB
/
check.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<#
cd C:\Greg\GitHub\av-gem-build-test
./check.ps1 64
#>
. $PSScriptRoot\shared\appveyor_setup.ps1 $args[0]
#———————————————————————————————————————————————————————————————— lowest ruby version
Make-Const ruby_vers_low 19
# null = don't compile; false = compile, ignore test (allow failure);
# true = compile & test
Make-Const trunk $false ; Make-Const trunk_x64 $false
Make-Const trunk_JIT $null ; Make-Const trunk_x64_JIT $null
Load-Rubies
foreach ($ruby in $rubies) {
# Loop if ruby version does not exist
if ( !(Test-Path -Path $dir_ruby$ruby$suf -PathType Container) ) { continue }
Write-Host "$($dash * 60) $ruby$suf setup" -ForegroundColor $fc
Check-SetVars
Write-Host "$($dash * 40) git & path" -ForegroundColor $fc
git version
Write-Host $env:path
# Add build system bin folders to path
if ($isRI2) {
$ssl_exe = "$msys2\$mingw\bin\openssl.exe"
$env:path += ";$msys2\$mingw\bin;$msys2\usr\bin;"
Update-MSYS2
} else {
$ssl_exe = "$DKw\mingw\$dk_b\bin\openssl.exe"
$env:path += ";$DKw\mingw\bin;$DKw\mingw\$dk_b\bin;$DKw\bin;"
}
Check-OpenSSL
Write-Host "$($dash * 60) $ruby$suf info" -ForegroundColor $fc
ruby -v
ruby -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
ruby -ropenssl -e "puts OpenSSL::OPENSSL_LIBRARY_VERSION if OpenSSL.const_defined?(:OPENSSL_LIBRARY_VERSION)"
&$ssl_exe version
}
if ($in_av -and $args[0] -eq '64') {
&$7z a shared .\shared
Push-AppveyorArtifact shared.7z
}