19 Install-Module VSSetup -Scope CurrentUser
21 Get-VSSetupInstance -All
23 gci env:* | sort-object name
25 If ($env:Platform -Match "x86") {
26 $env:VCVARS_PLATFORM="x86"
27 $env:TARGET="VC-WIN32 no-asm --strict-warnings"
29 $env:VCVARS_PLATFORM="amd64"
30 $env:TARGET="VC-WIN64A-masm"
33 If ($env:Configuration -Match "shared") {
34 $env:SHARED="no-makedepend"
36 $env:SHARED="no-shared no-makedepend"
38 - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
41 - perl ..\Configure %TARGET% %SHARED%
42 - perl configdata.pm --dump
45 if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
46 -or (&git log -2 | Select-String "\[extended tests\]") ) {
47 $env:EXTENDED_TESTS="yes"
53 If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
54 cmd /c "nmake build_all_generated 2>&1"
55 cmd /c "nmake PERL=no-perl 2>&1"
62 If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
63 if ($env:EXTENDED_TESTS) {
64 cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes 2>&1"
66 cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
70 if ($env:EXTENDED_TESTS) {
72 cmd /c "nmake install DESTDIR=..\_install 2>&1"