freebsd-dev/crypto/openssl/appveyor.yml

78 lines
2.4 KiB
YAML
Raw Normal View History

2020-03-17 21:27:57 +00:00
image:
- Visual Studio 2017
2015-12-03 17:22:58 +00:00
platform:
- x64
2018-09-13 19:18:07 +00:00
- x86
2015-12-03 17:22:58 +00:00
environment:
2018-09-13 19:18:07 +00:00
fast_finish: true
2015-12-03 17:22:58 +00:00
matrix:
2020-03-17 21:27:57 +00:00
- VSVER: 15
2015-12-03 17:22:58 +00:00
configuration:
- shared
2018-09-13 19:18:07 +00:00
- plain
2020-03-17 21:27:57 +00:00
- minimal
2015-12-03 17:22:58 +00:00
before_build:
2020-03-17 21:27:57 +00:00
- ps: >-
Install-Module VSSetup -Scope CurrentUser
- ps: >-
Get-VSSetupInstance -All
- ps: >-
gci env:* | sort-object name
2015-12-03 17:22:58 +00:00
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
2020-03-17 21:27:57 +00:00
$env:TARGET="VC-WIN32 no-asm --strict-warnings"
2015-12-03 17:22:58 +00:00
} Else {
$env:VCVARS_PLATFORM="amd64"
2018-09-13 19:18:07 +00:00
$env:TARGET="VC-WIN64A-masm"
2015-12-03 17:22:58 +00:00
}
- ps: >-
2018-09-13 19:18:07 +00:00
If ($env:Configuration -Match "shared") {
$env:SHARED="no-makedepend"
2020-03-17 21:27:57 +00:00
} ElseIf ($env:Configuration -Match "minimal") {
$env:SHARED="no-shared no-dso no-makedepend no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_SMALL_FOOTPRINT"
2015-12-03 17:22:58 +00:00
} Else {
2018-09-13 19:18:07 +00:00
$env:SHARED="no-shared no-makedepend"
2015-12-03 17:22:58 +00:00
}
2020-03-17 21:27:57 +00:00
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
2018-09-13 19:18:07 +00:00
- mkdir _build
- cd _build
- perl ..\Configure %TARGET% %SHARED%
- perl configdata.pm --dump
- cd ..
- ps: >-
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
-or (&git log -2 | Select-String "\[extended tests\]") ) {
$env:EXTENDED_TESTS="yes"
}
2015-12-03 17:22:58 +00:00
build_script:
2018-09-13 19:18:07 +00:00
- cd _build
- ps: >-
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
cmd /c "nmake build_all_generated 2>&1"
cmd /c "nmake PERL=no-perl 2>&1"
}
- cd ..
2015-12-03 17:22:58 +00:00
test_script:
2018-09-13 19:18:07 +00:00
- cd _build
- ps: >-
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
if ($env:EXTENDED_TESTS) {
cmd /c "nmake test V=1 2>&1"
} Else {
cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1"
}
}
- ps: >-
if ($env:EXTENDED_TESTS) {
mkdir ..\_install
cmd /c "nmake install DESTDIR=..\_install 2>&1"
}
- cd ..