mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
# version string format -- This will be overwritten later anyway
|
|
version: "{build}"
|
|
|
|
branches:
|
|
except:
|
|
- /dev-travis.+/
|
|
|
|
os:
|
|
- Visual Studio 2017
|
|
- Visual Studio 2015
|
|
|
|
environment:
|
|
matrix:
|
|
- additional_flags: "/permissive- /std:c++latest"
|
|
wmain: 0
|
|
|
|
- additional_flags: ""
|
|
wmain: 0
|
|
|
|
- additional_flags: "/D_UNICODE /DUNICODE"
|
|
wmain: 1
|
|
|
|
matrix:
|
|
exclude:
|
|
- os: Visual Studio 2015
|
|
additional_flags: "/permissive- /std:c++latest"
|
|
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
# Set build version to git commit-hash
|
|
- ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)"
|
|
|
|
# fetch repository as zip archive
|
|
shallow_clone: true
|
|
|
|
# Win32 and x64 are CMake-compatible solution platform names.
|
|
# This allows us to pass %PLATFORM% to CMake -A.
|
|
platform:
|
|
- Win32
|
|
- x64
|
|
|
|
# build Configurations, i.e. Debug, Release, etc.
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
|
|
#Cmake will autodetect the compiler, but we set the arch
|
|
before_build:
|
|
- python scripts/generateSingleHeader.py
|
|
- set CXXFLAGS=%additional_flags%
|
|
- cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DBUILD_EXAMPLES=ON
|
|
|
|
# build with MSBuild
|
|
build:
|
|
project: Build\CatchSelfTest.sln # path to Visual Studio solution or project
|
|
parallel: true # enable MSBuild parallel builds
|
|
verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
|
|
|
|
test_script:
|
|
- cd Build
|
|
- set CTEST_OUTPUT_ON_FAILURE=1
|
|
- ctest -j 2 -C %CONFIGURATION%
|