]> git.ipfire.org Git - thirdparty/openssl.git/blob - appveyor.yml
Appveyor: update to Visual Studio 2017.
[thirdparty/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
17 before_build:
18 - ps: >-
19 Install-Module VSSetup -Scope CurrentUser
20 - ps: >-
21 Get-VSSetupInstance -All
22 - ps: >-
23 gci env:* | sort-object name
24 - ps: >-
25 If ($env:Platform -Match "x86") {
26 $env:VCVARS_PLATFORM="x86"
27 $env:TARGET="VC-WIN32 no-asm --strict-warnings"
28 } Else {
29 $env:VCVARS_PLATFORM="amd64"
30 $env:TARGET="VC-WIN64A-masm"
31 }
32 - ps: >-
33 If ($env:Configuration -Match "shared") {
34 $env:SHARED="no-makedepend"
35 } Else {
36 $env:SHARED="no-shared no-makedepend"
37 }
38 - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
39 - mkdir _build
40 - cd _build
41 - perl ..\Configure %TARGET% %SHARED%
42 - perl configdata.pm --dump
43 - cd ..
44 - ps: >-
45 if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER`
46 -or (&git log -2 | Select-String "\[extended tests\]") ) {
47 $env:EXTENDED_TESTS="yes"
48 }
49
50 build_script:
51 - cd _build
52 - ps: >-
53 If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
54 cmd /c "nmake build_all_generated 2>&1"
55 cmd /c "nmake PERL=no-perl 2>&1"
56 }
57 - cd ..
58
59 test_script:
60 - cd _build
61 - ps: >-
62 If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
63 if ($env:EXTENDED_TESTS) {
64 cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes 2>&1"
65 } Else {
66 cmd /c "nmake test HARNESS_VERBOSE_FAILURE=yes TESTS=-test_fuzz 2>&1"
67 }
68 }
69 - ps: >-
70 if ($env:EXTENDED_TESTS) {
71 mkdir ..\_install
72 cmd /c "nmake install DESTDIR=..\_install 2>&1"
73 }
74 - cd ..