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 | |
| 4 | # Disable the dead branch for v2 development |
| 5 | branches: |
| 6 | except: |
| 7 | - develop-v2 |
| 8 | |
| 9 | os: |
| 10 | - Visual Studio 2013 |
| 11 | - Visual Studio 2015 |
| 12 | |
| 13 | init: |
| 14 | - git config --global core.autocrlf input |
| 15 | # Set build version to git commit-hash |
| 16 | - ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)" |
| 17 | |
| 18 | # fetch repository as zip archive |
| 19 | shallow_clone: true |
| 20 | |
| 21 | # Win32 and x64 are CMake-compatible solution platform names. |
| 22 | # This allows us to pass %PLATFORM% to CMake -A. |
| 23 | platform: |
| 24 | - Win32 |
| 25 | - x64 |
| 26 | |
| 27 | # build Configurations, i.e. Debug, Release, etc. |
| 28 | configuration: |
| 29 | - Debug |
| 30 | - Release |
| 31 | |
| 32 | #Cmake will autodetect the compiler, but we set the arch |
| 33 | before_build: |
| 34 | - echo Running cmake... |
| 35 | - cmake -H. -BBuild -A%PLATFORM% |
| 36 | |
| 37 | # build with MSBuild |
| 38 | build: |
| 39 | project: Build\CatchSelfTest.sln # path to Visual Studio solution or project |
| 40 | parallel: true # enable MSBuild parallel builds |
| 41 | verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed} |
| 42 | |
| 43 | test_script: |
| 44 | - cd Build |
| 45 | - ctest -V -j 2 -C %CONFIGURATION% |