2019-10-20 00:24:49 +08:00
|
|
|
image:
|
2020-12-01 16:14:15 +08:00
|
|
|
- Visual Studio 2017
|
2019-10-20 00:24:49 +08:00
|
|
|
|
2015-10-29 04:11:37 +08:00
|
|
|
platform:
|
|
|
|
- x64
|
2017-03-01 21:33:34 +08:00
|
|
|
- x86
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
environment:
|
2017-03-01 21:33:34 +08:00
|
|
|
fast_finish: true
|
2015-10-29 04:11:37 +08:00
|
|
|
matrix:
|
2019-10-20 00:24:49 +08:00
|
|
|
- VSVER: 15
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- shared
|
2017-03-01 21:33:34 +08:00
|
|
|
- plain
|
2019-09-13 15:24:53 +08:00
|
|
|
- minimal
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
before_build:
|
2019-10-20 00:24:49 +08:00
|
|
|
- ps: >-
|
|
|
|
Install-Module VSSetup -Scope CurrentUser
|
|
|
|
- ps: >-
|
|
|
|
Get-VSSetupInstance -All
|
2015-10-29 04:11:37 +08:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Platform -Match "x86") {
|
|
|
|
$env:VCVARS_PLATFORM="x86"
|
2019-10-29 20:37:54 +08:00
|
|
|
$env:TARGET="VC-WIN32 no-asm --strict-warnings"
|
2015-10-29 04:11:37 +08:00
|
|
|
} Else {
|
|
|
|
$env:VCVARS_PLATFORM="amd64"
|
2017-02-20 05:11:29 +08:00
|
|
|
$env:TARGET="VC-WIN64A-masm"
|
2015-10-29 04:11:37 +08:00
|
|
|
}
|
2016-03-16 21:58:17 +08:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared") {
|
2020-12-02 00:15:45 +08:00
|
|
|
$env:CONFIG_OPTS=""
|
2019-09-13 15:24:53 +08:00
|
|
|
} ElseIf ($env:Configuration -Match "minimal") {
|
2020-12-02 00:15:45 +08:00
|
|
|
$env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT"
|
2016-04-14 21:28:13 +08:00
|
|
|
} Else {
|
2020-12-02 00:15:45 +08:00
|
|
|
$env:CONFIG_OPTS="no-shared"
|
2016-03-16 21:58:17 +08:00
|
|
|
}
|
2019-10-20 00:24:49 +08:00
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
|
2016-06-02 23:37:26 +08:00
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
2020-12-02 00:15:45 +08:00
|
|
|
- perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS%
|
2018-01-30 01:22:33 +08:00
|
|
|
- perl configdata.pm --dump
|
2016-06-02 23:37:26 +08:00
|
|
|
- cd ..
|
2017-03-01 21:33:34 +08:00
|
|
|
- ps: >-
|
2020-10-11 04:25:10 +08:00
|
|
|
If (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
|
2020-05-28 17:20:50 +08:00
|
|
|
-or (&git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT |
|
|
|
|
Select-String "\[extended tests\]") ) {
|
2017-03-01 21:33:34 +08:00
|
|
|
$env:EXTENDED_TESTS="yes"
|
|
|
|
}
|
2020-12-01 15:52:33 +08:00
|
|
|
- ps: >-
|
|
|
|
If ($env:BUILDONLY -or $env:MAKEVERBOSE) {
|
|
|
|
$env:NMAKE="nmake"
|
|
|
|
} Else {
|
|
|
|
$env:NMAKE="nmake /S"
|
|
|
|
}
|
2020-10-11 04:25:10 +08:00
|
|
|
- ps: >-
|
|
|
|
gci env:* | sort-object name
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
build_script:
|
2017-04-07 20:27:54 +08:00
|
|
|
- cd _build
|
2017-03-01 21:33:34 +08:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
2020-12-01 15:52:33 +08:00
|
|
|
cmd /c "%NMAKE% build_all_generated 2>&1"
|
2020-12-01 16:14:15 +08:00
|
|
|
# Unfortunately, CL=/MP would not have parallelizing effect
|
2020-12-01 15:52:33 +08:00
|
|
|
cmd /c "%NMAKE% PERL=no-perl 2>&1"
|
2017-03-01 21:33:34 +08:00
|
|
|
}
|
2017-04-07 20:27:54 +08:00
|
|
|
- cd ..
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
test_script:
|
2017-04-07 20:27:54 +08:00
|
|
|
- cd _build
|
2017-03-01 21:33:34 +08:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
2020-12-01 16:14:15 +08:00
|
|
|
# Unfortunately, HARNESS_JOBS=4 would not have parallelizing effect
|
2017-03-01 21:33:34 +08:00
|
|
|
if ($env:EXTENDED_TESTS) {
|
2020-12-01 15:52:33 +08:00
|
|
|
cmd /c "%NMAKE% test HARNESS_VERBOSE_FAILURE=yes 2>&1"
|
2017-03-01 21:33:34 +08:00
|
|
|
} Else {
|
2020-12-01 15:52:33 +08:00
|
|
|
cmd /c "%NMAKE% test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
|
2017-03-01 21:33:34 +08:00
|
|
|
}
|
|
|
|
}
|
2017-04-07 20:27:54 +08:00
|
|
|
- ps: >-
|
|
|
|
if ($env:EXTENDED_TESTS) {
|
|
|
|
mkdir ..\_install
|
2020-12-01 15:52:33 +08:00
|
|
|
cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1"
|
2017-04-07 20:27:54 +08:00
|
|
|
}
|
|
|
|
- cd ..
|