aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/appveyor.yml
blob: bc9a65d080dec221d4ff873c7310c0a5391071fd (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

clone_depth: 5

environment:

  SCCACHE_DIR: C:\Users\appveyor\AppData\Local\Mozilla\sccache\cache
  SCCACHE_CACHE_SIZE: 128M
  APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9

  matrix:

    # MSVC 2015 DLL x86-32
    - MSVS: 2015
      PLATFORM: x86
      TARGET: shared
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      BOOST_ROOT: "C:\\Libraries\\boost_1_69_0"
      BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_69_0\\lib32-msvc-14.0"
      BOOST_SYSTEM_LIBRARY: "libboost_system-vc140-mt-x32-1_69.lib"

    # MSVC 2015 DLL x86-64
    - MSVS: 2015
      PLATFORM: x86_amd64
      TARGET: shared
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      BOOST_ROOT: "C:\\Libraries\\boost_1_69_0"
      BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_69_0\\lib64-msvc-14.0"
      BOOST_SYSTEM_LIBRARY: "libboost_system-vc140-mt-x64-1_69.lib"

    # MSVC 2017 DLL x86-32
    - MSVS: 2017
      PLATFORM: x86
      TARGET: shared
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      BOOST_ROOT: "C:\\Libraries\\boost_1_69_0"
      BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_69_0\\lib32-msvc-14.1"
      BOOST_SYSTEM_LIBRARY: "libboost_system-vc141-mt-x32-1_69.lib"

    # MSVC 2017 DLL x86-64
    - MSVS: 2017
      PLATFORM: x86_amd64
      TARGET: shared
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      BOOST_ROOT: "C:\\Libraries\\boost_1_69_0"
      BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_69_0\\lib64-msvc-14.1"
      BOOST_SYSTEM_LIBRARY: "libboost_system-vc141-mt-x64-1_69.lib"

    # MSVC 2017 static x86-64
    - MSVS: 2017
      PLATFORM: x86_amd64
      TARGET: static
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      BOOST_ROOT: "C:\\Libraries\\boost_1_69_0"
      BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_69_0\\lib64-msvc-14.1"
      BOOST_SYSTEM_LIBRARY: "libboost_system-vc141-mt-x64-1_69.lib"

    # MSVC 2019 x86-64 w/debug iterators
    - MSVS: 2019
      PLATFORM: x86_amd64
      TARGET: sanitizer
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 Preview

install:
  - call src\scripts\ci\setup_appveyor.bat

build_script:
  - python src\scripts\ci_build.py --os=windows --cc=msvc --without-python3 --compiler-cache=sccache --make-tool=jom --cpu=%PLATFORM% %TARGET%

# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
branches:
  only:
    - master
    - release-2

cache:
  - C:\Users\appveyor\AppData\Local\Mozilla\sccache\cache