]> git.ipfire.org Git - thirdparty/openssl.git/blob - appveyor.yml
appveyor.yml: clarify conditions for building the plain configuration
[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 - minimal
16
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
38 before_build:
39 - ps: >-
40 Install-Module VSSetup -Scope CurrentUser
41 - ps: >-
42 Get-VSSetupInstance -All
43 - ps: >-
44 If ($env:Platform -Match "x86") {
45 $env:VCVARS_PLATFORM="x86"
46 $env:TARGET="VC-WIN32 no-asm --strict-warnings"
47 } Else {
48 $env:VCVARS_PLATFORM="amd64"
49 $env:TARGET="VC-WIN64A-masm"
50 }
51 - ps: >-
52 If ($env:Configuration -Match "shared") {
53 $env:CONFIG_OPTS=""
54 } ElseIf ($env:Configuration -Match "minimal") {
55 $env:CONFIG_OPTS="no-bulk no-asm -DOPENSSL_SMALL_FOOTPRINT"
56 } Else {
57 $env:CONFIG_OPTS="no-shared"
58 }
59 - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
60 - mkdir _build
61 - cd _build
62 - perl ..\Configure %TARGET% no-makedepend %CONFIG_OPTS%
63 - perl configdata.pm --dump
64 - cd ..
65 - ps: >-
66 If ($env:BUILDONLY -or $env:MAKEVERBOSE) {
67 $env:NMAKE="nmake"
68 } Else {
69 $env:NMAKE="nmake /S"
70 }
71 - ps: >-
72 gci env:* | sort-object name
73
74 build_script:
75 - cd _build
76 - "%NMAKE% build_all_generated"
77 - "%NMAKE% PERL=no-perl"
78 - cd ..
79
80 test_script:
81 - cd _build
82 - ps: >-
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"
87 }
88 - ps: >-
89 if ($env:EXTENDED_TESTS) {
90 mkdir ..\_install
91 cmd /c "%NMAKE% install DESTDIR=..\_install 2>&1"
92 }
93 - cd ..