]>
Commit | Line | Data |
---|---|---|
b03de7a9 | 1 | image: |
68b9c2cb | 2 | - Visual Studio 2017 |
b03de7a9 | 3 | |
68db80e2 | 4 | platform: |
68db80e2 | 5 | - x64 |
fd74aba8 | 6 | - x86 |
68db80e2 AG |
7 | |
8 | environment: | |
fd74aba8 | 9 | fast_finish: true |
68db80e2 | 10 | matrix: |
b03de7a9 | 11 | - VSVER: 15 |
68db80e2 AG |
12 | |
13 | configuration: | |
68db80e2 | 14 | - shared |
fd74aba8 | 15 | - plain |
d819760d | 16 | - minimal |
68db80e2 | 17 | |
68db80e2 | 18 | before_build: |
b03de7a9 F |
19 | - ps: >- |
20 | Install-Module VSSetup -Scope CurrentUser | |
21 | - ps: >- | |
22 | Get-VSSetupInstance -All | |
68db80e2 AG |
23 | - ps: >- |
24 | If ($env:Platform -Match "x86") { | |
25 | $env:VCVARS_PLATFORM="x86" | |
b4a7b4ec | 26 | $env:TARGET="VC-WIN32 no-asm --strict-warnings" |
68db80e2 AG |
27 | } Else { |
28 | $env:VCVARS_PLATFORM="amd64" | |
fe9aa764 | 29 | $env:TARGET="VC-WIN64A-masm" |
68db80e2 | 30 | } |
f527b6e4 RL |
31 | - ps: >- |
32 | If ($env:Configuration -Match "shared") { | |
06f81af8 | 33 | $env:CONFIG_OPTS="" |
d819760d | 34 | } ElseIf ($env:Configuration -Match "minimal") { |
06f81af8 | 35 | $env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT" |
e951eca8 | 36 | } Else { |
06f81af8 | 37 | $env:CONFIG_OPTS="no-shared" |
f527b6e4 | 38 | } |
b03de7a9 | 39 | - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM% |
14c42019 RL |
40 | - mkdir _build |
41 | - cd _build | |
06f81af8 | 42 | - perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS% |
2da0130b | 43 | - perl configdata.pm --dump |
14c42019 | 44 | - cd .. |
fd74aba8 | 45 | - ps: >- |
824cf2c3 | 46 | If (-not $env:APPVEYOR_PULL_REQUEST_NUMBER` |
d805b831 BE |
47 | -or (&git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT | |
48 | Select-String "\[extended tests\]") ) { | |
fd74aba8 AP |
49 | $env:EXTENDED_TESTS="yes" |
50 | } | |
0386bf82 DDO |
51 | - ps: >- |
52 | If ($env:BUILDONLY -or $env:MAKEVERBOSE) { | |
53 | $env:NMAKE="nmake" | |
54 | } Else { | |
55 | $env:NMAKE="nmake /S" | |
56 | } | |
824cf2c3 DDO |
57 | - ps: >- |
58 | gci env:* | sort-object name | |
68db80e2 AG |
59 | |
60 | build_script: | |
3de47fb2 | 61 | - cd _build |
fd74aba8 AP |
62 | - ps: >- |
63 | If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) { | |
0386bf82 | 64 | cmd /c "%NMAKE% build_all_generated 2>&1" |
68b9c2cb | 65 | # Unfortunately, CL=/MP would not have parallelizing effect |
0386bf82 | 66 | cmd /c "%NMAKE% PERL=no-perl 2>&1" |
fd74aba8 | 67 | } |
3de47fb2 | 68 | - cd .. |
68db80e2 AG |
69 | |
70 | test_script: | |
3de47fb2 | 71 | - cd _build |
fd74aba8 AP |
72 | - ps: >- |
73 | If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) { | |
68b9c2cb | 74 | # Unfortunately, HARNESS_JOBS=4 would not have parallelizing effect |
fd74aba8 | 75 | if ($env:EXTENDED_TESTS) { |
0386bf82 | 76 | cmd /c "%NMAKE% test HARNESS_VERBOSE_FAILURE=yes 2>&1" |
fd74aba8 | 77 | } Else { |
0386bf82 | 78 | cmd /c "%NMAKE% test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1" |
fd74aba8 | 79 | } |
fd74aba8 | 80 | } |
3de47fb2 AP |
81 | - ps: >- |
82 | if ($env:EXTENDED_TESTS) { | |
83 | mkdir ..\_install | |
0386bf82 | 84 | cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1" |
3de47fb2 AP |
85 | } |
86 | - cd .. |