]> git.ipfire.org Git - thirdparty/openssl.git/blame - appveyor.yml
Fix no-dsa
[thirdparty/openssl.git] / appveyor.yml
CommitLineData
b03de7a9 1image:
68b9c2cb 2 - Visual Studio 2017
b03de7a9 3
68db80e2 4platform:
68db80e2 5 - x64
fd74aba8 6 - x86
68db80e2
AG
7
8environment:
fd74aba8 9 fast_finish: true
68db80e2 10 matrix:
b03de7a9 11 - VSVER: 15
68db80e2
AG
12
13configuration:
68db80e2 14 - shared
fd74aba8 15 - plain
d819760d 16 - minimal
68db80e2 17
68db80e2 18before_build:
b03de7a9
F
19 - ps: >-
20 Install-Module VSSetup -Scope CurrentUser
21 - ps: >-
22 Get-VSSetupInstance -All
23 - ps: >-
24 gci env:* | sort-object name
68db80e2
AG
25 - ps: >-
26 If ($env:Platform -Match "x86") {
27 $env:VCVARS_PLATFORM="x86"
b4a7b4ec 28 $env:TARGET="VC-WIN32 no-asm --strict-warnings"
68db80e2
AG
29 } Else {
30 $env:VCVARS_PLATFORM="amd64"
fe9aa764 31 $env:TARGET="VC-WIN64A-masm"
68db80e2 32 }
f527b6e4
RL
33 - ps: >-
34 If ($env:Configuration -Match "shared") {
441bcafd 35 $env:SHARED="no-makedepend"
d819760d 36 } ElseIf ($env:Configuration -Match "minimal") {
e6a2596c 37 $env:SHARED="no-shared no-dso no-makedepend no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-ec no-ec2m no-engine no-filenames no-idea no-ktls no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm3 no-sm4 no-srp no-srtp no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_SMALL_FOOTPRINT"
e951eca8 38 } Else {
441bcafd 39 $env:SHARED="no-shared no-makedepend"
f527b6e4 40 }
b03de7a9 41 - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
14c42019
RL
42 - mkdir _build
43 - cd _build
fe9aa764 44 - perl ..\Configure %TARGET% %SHARED%
2da0130b 45 - perl configdata.pm --dump
14c42019 46 - cd ..
fd74aba8 47 - ps: >-
6356716a 48 if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
d805b831
BE
49 -or (&git log -1 $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT |
50 Select-String "\[extended tests\]") ) {
fd74aba8
AP
51 $env:EXTENDED_TESTS="yes"
52 }
0386bf82
DDO
53 - ps: >-
54 If ($env:BUILDONLY -or $env:MAKEVERBOSE) {
55 $env:NMAKE="nmake"
56 } Else {
57 $env:NMAKE="nmake /S"
58 }
68db80e2
AG
59
60build_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
70test_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 ..