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