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:
|
|
|
|
- VSVER: 14
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- shared
|
2017-03-01 21:33:34 +08:00
|
|
|
- plain
|
2015-10-29 04:11:37 +08:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
- ps: >-
|
|
|
|
If ($env:Platform -Match "x86") {
|
|
|
|
$env:VCVARS_PLATFORM="x86"
|
2017-02-20 05:11:29 +08:00
|
|
|
$env:TARGET="VC-WIN32 no-asm"
|
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") {
|
2018-02-24 00:24:41 +08:00
|
|
|
$env:SHARED="no-makedepend"
|
2016-04-14 21:28:13 +08:00
|
|
|
} Else {
|
2018-02-24 00:24:41 +08:00
|
|
|
$env:SHARED="no-shared no-makedepend"
|
2016-03-16 21:58:17 +08:00
|
|
|
}
|
2015-10-29 04:11:37 +08:00
|
|
|
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
|
|
|
|
- call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
|
2016-06-02 23:37:26 +08:00
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
2017-02-20 05:11:29 +08:00
|
|
|
- perl ..\Configure %TARGET% %SHARED%
|
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: >-
|
2017-03-02 21:07:45 +08:00
|
|
|
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
|
|
|
|
-or (&git log -2 | Select-String "\[extended tests\]") ) {
|
2017-03-01 21:33:34 +08:00
|
|
|
$env:EXTENDED_TESTS="yes"
|
|
|
|
}
|
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) {
|
2018-04-11 22:07:38 +08:00
|
|
|
cmd /c "nmake build_all_generated 2>&1"
|
|
|
|
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) {
|
|
|
|
if ($env:EXTENDED_TESTS) {
|
2017-03-02 21:07:45 +08:00
|
|
|
cmd /c "nmake test V=1 2>&1"
|
2017-03-01 21:33:34 +08:00
|
|
|
} Else {
|
2017-03-02 21:07:45 +08:00
|
|
|
cmd /c "nmake test V=1 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
|
2018-05-14 15:28:52 +08:00
|
|
|
cmd /c "nmake install DESTDIR=..\_install 2>&1"
|
2017-04-07 20:27:54 +08:00
|
|
|
}
|
|
|
|
- cd ..
|