Martin Hořeňovský | 29fa1ed | 2017-02-14 09:37:37 +0100 | [diff] [blame] | 1 | # version string format -- This will be overwritten later anyway |
| 2 | version: "{build}" |
| 3 | |
Martin Hořeňovský | 29fa1ed | 2017-02-14 09:37:37 +0100 | [diff] [blame] | 4 | os: |
Martin Hořeňovský | 09e4830 | 2017-04-06 11:01:49 +0200 | [diff] [blame] | 5 | - Visual Studio 2017 |
Martin Hořeňovský | 8f0feaa | 2017-04-20 21:32:50 +0200 | [diff] [blame] | 6 | - Visual Studio 2015 |
| 7 | - Visual Studio 2013 |
| 8 | |
| 9 | environment: |
| 10 | matrix: |
| 11 | - additional_flags: "/permissive- /std:c++latest" |
| 12 | - additional_flags: "" |
| 13 | |
| 14 | matrix: |
| 15 | exclude: |
| 16 | - |
| 17 | additional_flags: "/permissive- /std:c++latest" |
| 18 | os: Visual Studio 2015 |
| 19 | - |
| 20 | additional_flags: "/permissive- /std:c++latest" |
| 21 | os: Visual Studio 2013 |
Martin Hořeňovský | 29fa1ed | 2017-02-14 09:37:37 +0100 | [diff] [blame] | 22 | |
| 23 | init: |
| 24 | - git config --global core.autocrlf input |
| 25 | # Set build version to git commit-hash |
| 26 | - ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)" |
| 27 | |
| 28 | # fetch repository as zip archive |
| 29 | shallow_clone: true |
| 30 | |
| 31 | # Win32 and x64 are CMake-compatible solution platform names. |
| 32 | # This allows us to pass %PLATFORM% to CMake -A. |
| 33 | platform: |
| 34 | - Win32 |
| 35 | - x64 |
| 36 | |
| 37 | # build Configurations, i.e. Debug, Release, etc. |
| 38 | configuration: |
| 39 | - Debug |
| 40 | - Release |
| 41 | |
| 42 | #Cmake will autodetect the compiler, but we set the arch |
| 43 | before_build: |
Martin Hořeňovský | 8f0feaa | 2017-04-20 21:32:50 +0200 | [diff] [blame] | 44 | - set CXXFLAGS=%additional_flags% |
Martin Hořeňovský | 29fa1ed | 2017-02-14 09:37:37 +0100 | [diff] [blame] | 45 | - cmake -H. -BBuild -A%PLATFORM% |
| 46 | |
| 47 | # build with MSBuild |
| 48 | build: |
| 49 | project: Build\CatchSelfTest.sln # path to Visual Studio solution or project |
| 50 | parallel: true # enable MSBuild parallel builds |
| 51 | verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed} |
| 52 | |
| 53 | test_script: |
| 54 | - cd Build |
| 55 | - ctest -V -j 2 -C %CONFIGURATION% |