AppVeyor: Only use the latest VS version
[openssl.git] / appveyor.yml
1 platform:
2     - x86
3     - x64
4
5 environment:
6     matrix:
7         - VSVER: 14
8
9 configuration:
10     - plain
11     - shared
12
13 before_build:
14     - ps: >-
15         If ($env:Platform -Match "x86") {
16             $env:VCVARS_PLATFORM="x86"
17             $env:TARGET="VC-WIN32"
18             $env:DO="do_ms"
19         } Else {
20             $env:VCVARS_PLATFORM="amd64"
21             $env:TARGET="VC-WIN64A"
22             $env:DO="do_win64a"
23         }
24     - ps: >-
25         If ($env:Configuration -Like "*shared*") {
26             $env:MAK="ntdll.mak"
27         } Else {
28             $env:MAK="nt.mak"
29         }
30     - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
31     - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
32     - perl Configure %TARGET% no-asm
33     - call ms\%DO%
34
35 build_script:
36     - nmake /f ms\%MAK%
37
38 test_script:
39     - nmake /f ms\%MAK% test
40
41 notifications:
42     - provider: Email
43       to:
44           - openssl-commits@openssl.org
45       on_build_success: false
46       on_build_failure: true
47       on_build_status_changed: true