|
rpm-build |
a7f80b |
# version string format -- This will be overwritten later anyway
|
|
rpm-build |
a7f80b |
version: "{build}"
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
branches:
|
|
rpm-build |
a7f80b |
except:
|
|
rpm-build |
a7f80b |
- /dev-travis.+/
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
os:
|
|
rpm-build |
a7f80b |
- Visual Studio 2017
|
|
rpm-build |
a7f80b |
- Visual Studio 2015
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
environment:
|
|
rpm-build |
a7f80b |
matrix:
|
|
rpm-build |
a7f80b |
- additional_flags: "/permissive- /std:c++latest"
|
|
rpm-build |
a7f80b |
wmain: 0
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- additional_flags: ""
|
|
rpm-build |
a7f80b |
wmain: 0
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- additional_flags: "/D_UNICODE /DUNICODE"
|
|
rpm-build |
a7f80b |
wmain: 1
|
|
rpm-build |
a7f80b |
coverage: 0
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# Have a coverage dimension
|
|
rpm-build |
a7f80b |
- additional_flags: ""
|
|
rpm-build |
a7f80b |
wmain: 0
|
|
rpm-build |
a7f80b |
coverage: 1
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# Have an examples dimension
|
|
rpm-build |
a7f80b |
- additional_flags: ""
|
|
rpm-build |
a7f80b |
wmain: 0
|
|
rpm-build |
a7f80b |
examples: 1
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
matrix:
|
|
rpm-build |
a7f80b |
exclude:
|
|
rpm-build |
a7f80b |
- os: Visual Studio 2015
|
|
rpm-build |
a7f80b |
additional_flags: "/permissive- /std:c++latest"
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- os: Visual Studio 2015
|
|
rpm-build |
a7f80b |
additional_flags: "/D_UNICODE /DUNICODE"
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# Exclude unwanted coverage configurations
|
|
rpm-build |
a7f80b |
- coverage: 1
|
|
rpm-build |
a7f80b |
platform: Win32
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- coverage: 1
|
|
rpm-build |
a7f80b |
os: Visual Studio 2015
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- coverage: 1
|
|
rpm-build |
a7f80b |
configuration: Release
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# Exclude unwanted examples configurations
|
|
rpm-build |
a7f80b |
- examples: 1
|
|
rpm-build |
a7f80b |
platform: Win32
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- examples: 1
|
|
rpm-build |
a7f80b |
os: Visual Studio 2015
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
- examples: 1
|
|
rpm-build |
a7f80b |
configuration: Release
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
install:
|
|
rpm-build |
a7f80b |
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { python -m pip install codecov }
|
|
rpm-build |
a7f80b |
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\misc\installOpenCppCoverage.ps1 }
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# Win32 and x64 are CMake-compatible solution platform names.
|
|
rpm-build |
a7f80b |
# This allows us to pass %PLATFORM% to CMake -A.
|
|
rpm-build |
a7f80b |
platform:
|
|
rpm-build |
a7f80b |
- Win32
|
|
rpm-build |
a7f80b |
- x64
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# build Configurations, i.e. Debug, Release, etc.
|
|
rpm-build |
a7f80b |
configuration:
|
|
rpm-build |
a7f80b |
- Debug
|
|
rpm-build |
a7f80b |
- Release
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
#Cmake will autodetect the compiler, but we set the arch
|
|
rpm-build |
a7f80b |
before_build:
|
|
rpm-build |
a7f80b |
- set CXXFLAGS=%additional_flags%
|
|
rpm-build |
a7f80b |
# Indirection because appveyor doesn't handle multiline batch scripts properly
|
|
rpm-build |
a7f80b |
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
|
|
rpm-build |
a7f80b |
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
|
|
rpm-build |
a7f80b |
- cmd: .\misc\appveyorBuildConfigurationScript.bat
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
# build with MSBuild
|
|
rpm-build |
a7f80b |
build:
|
|
rpm-build |
a7f80b |
project: Build\Catch2.sln # path to Visual Studio solution or project
|
|
rpm-build |
a7f80b |
parallel: true # enable MSBuild parallel builds
|
|
rpm-build |
a7f80b |
verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
|
|
rpm-build |
a7f80b |
|
|
rpm-build |
a7f80b |
test_script:
|
|
rpm-build |
a7f80b |
- set CTEST_OUTPUT_ON_FAILURE=1
|
|
rpm-build |
a7f80b |
- cmd: .\misc\appveyorTestRunScript.bat
|