Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame] | 1 | clone_folder: c:\projects\jsoncpp |
| 2 | |
| 3 | environment: |
Elliott Hughes | 1601ea0 | 2021-12-07 09:43:38 -0800 | [diff] [blame] | 4 | |
Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame] | 5 | 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 | |
| 15 | build_script: |
| 16 | - cmake --version |
Elliott Hughes | 1601ea0 | 2021-12-07 09:43:38 -0800 | [diff] [blame] | 17 | # 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 Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame] | 23 | # Use ctest to make a dashboard build: |
| 24 | # - ctest -D Experimental(Start|Update|Configure|Build|Test|Coverage|MemCheck|Submit) |
Elliott Hughes | 1601ea0 | 2021-12-07 09:43:38 -0800 | [diff] [blame] | 25 | # NOTE: Testing on windows is not yet finished: |
Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame] | 26 | # - 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 | |
| 31 | deploy: |
| 32 | provider: GitHub |
| 33 | auth_token: |
| 34 | secure: K2Tp1q8pIZ7rs0Ot24ZMWuwr12Ev6Tc6QkhMjGQxoQG3ng1pXtgPasiJ45IDXGdg |
| 35 | on: |
| 36 | branch: master |
| 37 | appveyor_repo_tag: true |