aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/appveyor.yml
blob: 17cf86fdd8e440b563212518e8ba7abc549b9ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
os: Visual Studio 2015

platform:
  - x86
  - x86_amd64

configuration:
  - Release
  - Debug

environment:
  matrix:
    - COMPILER: msvc-12.0
      MODE: --enable-shared
    - COMPILER: msvc-12.0
      MODE: --disable-shared
    - COMPILER: msvc-12.0
      MODE: --amalgamation
    - COMPILER: msvc-14.0
      MODE: --enable-shared
    - COMPILER: msvc-14.0
      MODE: --disable-shared
    - COMPILER: msvc-14.0
      MODE: --amalgamation

install:
  - if %compiler% == msvc-12.0 (
       call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM%
    )
  - if %compiler% == msvc-14.0 (
       call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
    )
  - cl # check compiler version
  
  - appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip
  - 7z e jom.zip

build_script:
  - if %configuration% == Release (
       python configure.py --cc=msvc --cpu=%PLATFORM% %MODE% --with-pkcs11
    )
  - if %configuration% == Debug (
       python configure.py --cc=msvc --cpu=%PLATFORM% %MODE% --with-pkcs11 --debug-mode
    )
  - jom -j2
  - botan-test
  - nmake install