mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Check single-header using test examples
This means that examples build for all matrix entries
This commit is contained in:
parent
812bf21740
commit
f36817ef83
10
.travis.yml
10
.travis.yml
@ -203,9 +203,13 @@ install:
|
|||||||
before_script:
|
before_script:
|
||||||
- export CXX=${COMPILER}
|
- export CXX=${COMPILER}
|
||||||
- cd ${TRAVIS_BUILD_DIR}
|
- cd ${TRAVIS_BUILD_DIR}
|
||||||
# Only run valgrind in debug build
|
# Regenerate single header file, so it is tested in the examples...
|
||||||
- cmake -H. -BBuild-Debug -DCMAKE_BUILD_TYPE=Debug -Wdev -DUSE_CPP14=${CPP14} -DUSE_VALGRIND=${VALGRIND} -DNO_SELFTEST=${ENV_NO_SELFTEST} -DBUILD_EXAMPLES=${ENV_BUILD_EXAMPLES}
|
- python scripts/generateSingleHeader.py
|
||||||
- cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -Wdev -DUSE_CPP14=${CPP14} -DNO_SELFTEST=${ENV_NO_SELFTEST} -DBUILD_EXAMPLES=${ENV_BUILD_EXAMPLES}
|
|
||||||
|
# Use Debug builds for running Valgrind and building examples
|
||||||
|
- cmake -H. -BBuild-Debug -DCMAKE_BUILD_TYPE=Debug -Wdev -DUSE_CPP14=${CPP14} -DUSE_VALGRIND=${VALGRIND} -DBUILD_EXAMPLES=ON
|
||||||
|
# Check that we don't miscompile with optimalizations...
|
||||||
|
- cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -Wdev -DUSE_CPP14=${CPP14}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd Build-Debug
|
- cd Build-Debug
|
||||||
|
@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.0)
|
|||||||
project(CatchSelfTest)
|
project(CatchSelfTest)
|
||||||
|
|
||||||
option(USE_VALGRIND "Perform SelfTests with Valgrind" OFF)
|
option(USE_VALGRIND "Perform SelfTests with Valgrind" OFF)
|
||||||
|
option(BUILD_EXAMPLES "Build documentation examples" OFF)
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
|
16
appveyor.yml
16
appveyor.yml
@ -20,24 +20,11 @@ environment:
|
|||||||
- additional_flags: "/D_UNICODE /DUNICODE"
|
- additional_flags: "/D_UNICODE /DUNICODE"
|
||||||
wmain: 1
|
wmain: 1
|
||||||
|
|
||||||
- additional_flags: ""
|
|
||||||
wmain: 0
|
|
||||||
env_build_examples: 1
|
|
||||||
env_no_selftest: 1
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
- os: Visual Studio 2015
|
- os: Visual Studio 2015
|
||||||
additional_flags: "/permissive- /std:c++latest"
|
additional_flags: "/permissive- /std:c++latest"
|
||||||
|
|
||||||
- os: Visual Studio 2015
|
|
||||||
env_build_examples: 1
|
|
||||||
env_no_selftest: 1
|
|
||||||
|
|
||||||
- configuration: Debug
|
|
||||||
env_build_examples: 1
|
|
||||||
env_no_selftest: 1
|
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- git config --global core.autocrlf input
|
- git config --global core.autocrlf input
|
||||||
# Set build version to git commit-hash
|
# Set build version to git commit-hash
|
||||||
@ -59,8 +46,9 @@ configuration:
|
|||||||
|
|
||||||
#Cmake will autodetect the compiler, but we set the arch
|
#Cmake will autodetect the compiler, but we set the arch
|
||||||
before_build:
|
before_build:
|
||||||
|
- python scripts/generateSingleHeader.py
|
||||||
- set CXXFLAGS=%additional_flags%
|
- set CXXFLAGS=%additional_flags%
|
||||||
- cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DNO_SELFTEST=%env_no_selftest% -DBUILD_EXAMPLES=%env_build_examples%
|
- cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DBUILD_EXAMPLES=ON
|
||||||
|
|
||||||
# build with MSBuild
|
# build with MSBuild
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user