Debian Codegraph @

.github/external_ci/appveyor.yml

raw symbols SCIP
1 version: '{build}'
2
3 # only build PRs and commits to develop branch
4 # (see https://help.appveyor.com/discussions/questions/55079-two-builds-per-commit-to-pull-request)
5 branches:
6 only:
7 - develop
8
9 only_commits:
10 files:
11 - .github/external_ci/appveyor.yml
12 - cmake/
13 - include/
14 - tests/
15 - CMakeLists.txt
16
17 environment:
18 matrix:
19 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
20 configuration: Debug
21 platform: x86
22 CXX_FLAGS: "/W4 /WX"
23 CMAKE_OPTIONS: ""
24 GENERATOR: Visual Studio 14 2015
25
26 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
27 configuration: Release
28 platform: x86
29 CXX_FLAGS: "/W4 /WX"
30 CMAKE_OPTIONS: ""
31 GENERATOR: Visual Studio 14 2015
32
33 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
34 configuration: Release
35 platform: x86
36 name: with_win_header
37 CXX_FLAGS: "/W4 /WX"
38 CMAKE_OPTIONS: ""
39 GENERATOR: Visual Studio 14 2015
40
41 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
42 configuration: Release
43 platform: x86
44 CXX_FLAGS: "/permissive- /std:c++17 /utf-8 /W4 /WX"
45 CMAKE_OPTIONS: ""
46 GENERATOR: Visual Studio 15 2017
47
48 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
49 configuration: Release
50 platform: x86
51 CXX_FLAGS: "/W4 /WX"
52 CMAKE_OPTIONS: "-DJSON_ImplicitConversions=OFF"
53 GENERATOR: Visual Studio 16 2019
54
55 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
56 configuration: Release
57 platform: x64
58 CXX_FLAGS: "/W4 /WX"
59 CMAKE_OPTIONS: ""
60 GENERATOR: Visual Studio 14 2015
61
62 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
63 configuration: Release
64 platform: x64
65 CXX_FLAGS: "/permissive- /std:c++17 /Zc:__cplusplus /utf-8 /W4 /WX"
66 CMAKE_OPTIONS: ""
67 GENERATOR: Visual Studio 15 2017
68
69 init:
70 - cmake --version
71 - msbuild /version
72
73 install:
74 - if "%platform%"=="x86" set GENERATOR_PLATFORM=Win32
75
76 before_build:
77 # for with_win_header build, inject the inclusion of Windows.h to the single-header library
78 - ps: if ($env:name -Eq "with_win_header") { $header_path = "single_include\nlohmann\json.hpp" }
79 - ps: if ($env:name -Eq "with_win_header") { "#include <Windows.h>`n" + (Get-Content $header_path | Out-String) | Set-Content $header_path }
80 - cmake . -G "%GENERATOR%" -A "%GENERATOR_PLATFORM%" -DCMAKE_CXX_FLAGS="%CXX_FLAGS%" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin" -DJSON_BuildTests=On "%CMAKE_OPTIONS%"
81
82 build_script:
83 - cmake --build . --config "%configuration%" --parallel 2
84
85 test_script:
86 - if "%configuration%"=="Release" ctest -C "%configuration%" --parallel 2 --output-on-failure
87 # On Debug builds, skip test-unicode_all
88 # as it is extremely slow to run and cause
89 # occasional timeouts on AppVeyor.
90 # More info: https://github.com/nlohmann/json/pull/1570
91 - if "%configuration%"=="Debug" ctest --exclude-regex "test-unicode" -C "%configuration%" --parallel 2 --output-on-failure