2019-10-19 16:24:49 +00:00
|
|
|
image:
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
2015-10-28 20:11:37 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
2017-03-01 13:33:34 +00:00
|
|
|
- x86
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
environment:
|
2017-03-01 13:33:34 +00:00
|
|
|
fast_finish: true
|
2015-10-28 20:11:37 +00:00
|
|
|
matrix:
|
2019-10-19 16:24:49 +00:00
|
|
|
- VSVER: 15
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- shared
|
2017-03-01 13:33:34 +00:00
|
|
|
- plain
|
2019-09-13 07:05:08 +00:00
|
|
|
- minimal
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
before_build:
|
2019-10-19 16:24:49 +00:00
|
|
|
- ps: >-
|
|
|
|
Install-Module VSSetup -Scope CurrentUser
|
|
|
|
- ps: >-
|
|
|
|
Get-VSSetupInstance -All
|
|
|
|
- ps: >-
|
|
|
|
gci env:* | sort-object name
|
2015-10-28 20:11:37 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Platform -Match "x86") {
|
|
|
|
$env:VCVARS_PLATFORM="x86"
|
2019-10-29 12:37:54 +00:00
|
|
|
$env:TARGET="VC-WIN32 no-asm --strict-warnings"
|
2015-10-28 20:11:37 +00:00
|
|
|
} Else {
|
|
|
|
$env:VCVARS_PLATFORM="amd64"
|
2017-02-19 21:11:29 +00:00
|
|
|
$env:TARGET="VC-WIN64A-masm"
|
2015-10-28 20:11:37 +00:00
|
|
|
}
|
2016-03-16 13:58:17 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared") {
|
2018-02-23 16:24:41 +00:00
|
|
|
$env:SHARED="no-makedepend"
|
2019-09-13 07:05:08 +00:00
|
|
|
} ElseIf ($env:Configuration -Match "minimal") {
|
|
|
|
$env:SHARED="no-shared no-dso no-makedepend no-autoload-config no-engine no-comp no-cms no-dh no-dsa no-ec2m no-srp no-des no-mdc2 no-md4 no-rc2 no-rc4 no-bf no-camellia no-cast no-idea no-seed no-whirlpool no-ocsp no-sm2 no-sm3 no-sm4 no-ssl3 no-ssl3-method no-psk no-heartbeats no-nextprotoneg no-sctp no-srtp no-asm -DOPENSSL_SMALL_FOOTPRINT"
|
2016-04-14 13:28:13 +00:00
|
|
|
} Else {
|
2018-02-23 16:24:41 +00:00
|
|
|
$env:SHARED="no-shared no-makedepend"
|
2016-03-16 13:58:17 +00:00
|
|
|
}
|
2019-10-19 16:24:49 +00:00
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
|
2016-06-02 15:37:26 +00:00
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
2017-02-19 21:11:29 +00:00
|
|
|
- perl ..\Configure %TARGET% %SHARED%
|
2018-01-29 17:22:33 +00:00
|
|
|
- perl configdata.pm --dump
|
2016-06-02 15:37:26 +00:00
|
|
|
- cd ..
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
2017-03-02 13:07:45 +00:00
|
|
|
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
|
|
|
|
-or (&git log -2 | Select-String "\[extended tests\]") ) {
|
2017-03-01 13:33:34 +00:00
|
|
|
$env:EXTENDED_TESTS="yes"
|
|
|
|
}
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
build_script:
|
2017-04-07 12:27:54 +00:00
|
|
|
- cd _build
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
2018-04-11 14:07:38 +00:00
|
|
|
cmd /c "nmake build_all_generated 2>&1"
|
|
|
|
cmd /c "nmake PERL=no-perl 2>&1"
|
2017-03-01 13:33:34 +00:00
|
|
|
}
|
2017-04-07 12:27:54 +00:00
|
|
|
- cd ..
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
test_script:
|
2017-04-07 12:27:54 +00:00
|
|
|
- cd _build
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
|
|
|
if ($env:EXTENDED_TESTS) {
|
2017-03-02 13:07:45 +00:00
|
|
|
cmd /c "nmake test V=1 2>&1"
|
2017-03-01 13:33:34 +00:00
|
|
|
} Else {
|
2017-03-02 13:07:45 +00:00
|
|
|
cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1"
|
2017-03-01 13:33:34 +00:00
|
|
|
}
|
|
|
|
}
|
2017-04-07 12:27:54 +00:00
|
|
|
- ps: >-
|
|
|
|
if ($env:EXTENDED_TESTS) {
|
|
|
|
mkdir ..\_install
|
2018-05-14 07:28:52 +00:00
|
|
|
cmd /c "nmake install DESTDIR=..\_install 2>&1"
|
2017-04-07 12:27:54 +00:00
|
|
|
}
|
|
|
|
- cd ..
|