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