blob: cccce4298f93a3137bc5b6b9aaab6e456f14809d [file] [log] [blame]
Haibo Huangb0bee822021-02-24 15:40:15 -08001clone_folder: c:\projects\jsoncpp
2
3environment:
Elliott Hughes1601ea02021-12-07 09:43:38 -08004
Haibo Huangb0bee822021-02-24 15:40:15 -08005 matrix:
6 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
7 CMAKE_GENERATOR: Visual Studio 14 2015
8 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
9 CMAKE_GENERATOR: Visual Studio 14 2015 Win64
10 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
11 CMAKE_GENERATOR: Visual Studio 15 2017
12 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
13 CMAKE_GENERATOR: Visual Studio 15 2017 Win64
14
15build_script:
16 - cmake --version
Elliott Hughes1601ea02021-12-07 09:43:38 -080017 # The build script starts in root.
18 - set JSONCPP_FOLDER=%cd%
19 - set JSONCPP_BUILD_FOLDER=%JSONCPP_FOLDER%\build\release
20 - mkdir -p %JSONCPP_BUILD_FOLDER%
21 - cd %JSONCPP_BUILD_FOLDER%
22 - cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX:PATH=%CD:\=/%/install -DBUILD_SHARED_LIBS:BOOL=ON %JSONCPP_FOLDER%
Haibo Huangb0bee822021-02-24 15:40:15 -080023 # Use ctest to make a dashboard build:
24 # - ctest -D Experimental(Start|Update|Configure|Build|Test|Coverage|MemCheck|Submit)
Elliott Hughes1601ea02021-12-07 09:43:38 -080025 # NOTE: Testing on windows is not yet finished:
Haibo Huangb0bee822021-02-24 15:40:15 -080026 # - ctest -C Release -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
27 - ctest -C Release -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalSubmit
28 # Final step is to verify that installation succeeds
29 - cmake --build . --config Release --target install
30
31deploy:
32 provider: GitHub
33 auth_token:
34 secure: K2Tp1q8pIZ7rs0Ot24ZMWuwr12Ev6Tc6QkhMjGQxoQG3ng1pXtgPasiJ45IDXGdg
35 on:
36 branch: master
37 appveyor_repo_tag: true