Check single-header using test examples

This means that examples build for all matrix entries
This commit is contained in:
Martin Hořeňovský
2017-11-19 15:04:51 +01:00
parent 812bf21740
commit f36817ef83
3 changed files with 10 additions and 17 deletions

View File

@@ -20,24 +20,11 @@ environment:
- additional_flags: "/D_UNICODE /DUNICODE"
wmain: 1
- additional_flags: ""
wmain: 0
env_build_examples: 1
env_no_selftest: 1
matrix:
exclude:
- os: Visual Studio 2015
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:
- git config --global core.autocrlf input
# Set build version to git commit-hash
@@ -59,8 +46,9 @@ configuration:
#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% -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: