]>
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 |
d819760d | 15 | - minimal |
68db80e2 | 16 | |
51d058cd RL |
17 | for: |
18 | - | |
19 | only_commits: | |
20 | message: /\[extended tests\]/ | |
21 | configuration: | |
22 | - shared | |
23 | - plain | |
24 | - minimal | |
25 | environment: | |
26 | EXTENDED_TESTS: yes | |
27 | - | |
28 | branches: | |
29 | only: | |
30 | - master | |
31 | configuration: | |
32 | - shared | |
33 | - plain | |
34 | - minimal | |
35 | environment: | |
36 | EXTENDED_TESTS: yes | |
37 | ||
68db80e2 | 38 | before_build: |
b03de7a9 F |
39 | - ps: >- |
40 | Install-Module VSSetup -Scope CurrentUser | |
41 | - ps: >- | |
42 | Get-VSSetupInstance -All | |
68db80e2 AG |
43 | - ps: >- |
44 | If ($env:Platform -Match "x86") { | |
45 | $env:VCVARS_PLATFORM="x86" | |
b4a7b4ec | 46 | $env:TARGET="VC-WIN32 no-asm --strict-warnings" |
68db80e2 AG |
47 | } Else { |
48 | $env:VCVARS_PLATFORM="amd64" | |
fe9aa764 | 49 | $env:TARGET="VC-WIN64A-masm" |
68db80e2 | 50 | } |
f527b6e4 RL |
51 | - ps: >- |
52 | If ($env:Configuration -Match "shared") { | |
06f81af8 | 53 | $env:CONFIG_OPTS="" |
d819760d | 54 | } ElseIf ($env:Configuration -Match "minimal") { |
06f81af8 | 55 | $env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT" |
e951eca8 | 56 | } Else { |
06f81af8 | 57 | $env:CONFIG_OPTS="no-shared" |
f527b6e4 | 58 | } |
b03de7a9 | 59 | - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM% |
14c42019 RL |
60 | - mkdir _build |
61 | - cd _build | |
06f81af8 | 62 | - perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS% |
2da0130b | 63 | - perl configdata.pm --dump |
14c42019 | 64 | - cd .. |
0386bf82 DDO |
65 | - ps: >- |
66 | If ($env:BUILDONLY -or $env:MAKEVERBOSE) { | |
67 | $env:NMAKE="nmake" | |
68 | } Else { | |
69 | $env:NMAKE="nmake /S" | |
70 | } | |
824cf2c3 DDO |
71 | - ps: >- |
72 | gci env:* | sort-object name | |
68db80e2 AG |
73 | |
74 | build_script: | |
3de47fb2 | 75 | - cd _build |
51d058cd RL |
76 | - "%NMAKE% build_all_generated" |
77 | - "%NMAKE% PERL=no-perl" | |
3de47fb2 | 78 | - cd .. |
68db80e2 AG |
79 | |
80 | test_script: | |
3de47fb2 | 81 | - cd _build |
fd74aba8 | 82 | - ps: >- |
51d058cd RL |
83 | if ($env:EXTENDED_TESTS) { |
84 | cmd /c "%NMAKE% test VERBOSE_FAILURE=yes 2>&1" | |
85 | } Else { | |
86 | cmd /c "%NMAKE% test VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1" | |
fd74aba8 | 87 | } |
3de47fb2 AP |
88 | - ps: >- |
89 | if ($env:EXTENDED_TESTS) { | |
90 | mkdir ..\_install | |
0386bf82 | 91 | cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1" |
3de47fb2 AP |
92 | } |
93 | - cd .. |