forked from NileshVirkar/CPP_COVERAGE_SAMPLE
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit faf5b59
Showing
74 changed files
with
4,949 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "{branch}-ci-{build}" | ||
image: Visual Studio 2017 | ||
|
||
build: msvc | ||
platform: x86 | ||
configuration: Debug | ||
|
||
install: | ||
- choco install opencppcoverage codecov | ||
- set PATH=C:\Program Files\OpenCppCoverage;%PATH% | ||
|
||
build_script: | ||
- mkdir build && cd build | ||
- cmake .. | ||
- MSBuild Example.sln /p:Configuration=%configuration% /p:Platform="Win32" /nologo /m /verbosity:minimal | ||
- OpenCppCoverage --export_type cobertura:coverage.xml --modules "*.exe" --cover_children -- ctest -C %configuration% --output-on-failure | ||
- codecov -f coverage.xml --root %APPVEYOR_BUILD_FOLDER% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignored folders | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
language: cpp | ||
os: linux | ||
compiler: gcc | ||
|
||
cache: # see https://docs.travis-ci.com/user/caching/ | ||
- directories: | ||
- $HOME/.cache | ||
|
||
addons: | ||
apt: | ||
packages: lcov | ||
|
||
install: | ||
# (fake) install dependencies (usually involves wget, configure, make, ...) | ||
# install into cache folder (build binaries+headers only, no sources and do NOT build there) | ||
- mkdir -p $HOME/.cache | ||
- touch $HOME/.cache/mydependency.so | ||
|
||
script: ./build.sh | ||
|
||
after_success: | ||
# Create lcov report | ||
# capture coverage info | ||
- lcov --directory . --capture --output-file coverage.info | ||
# filter out system and extra files. | ||
# To also not include test code in coverage add them with full path to the patterns: '*/tests/*' | ||
- lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' --output-file coverage.info | ||
# output coverage data for debugging (optional) | ||
- lcov --list coverage.info | ||
# Uploading to CodeCov | ||
# '-f' specifies file(s) to use and disables manual coverage gathering and file search which has already been done above | ||
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports" | ||
|
||
notifications: | ||
email: | ||
- [email protected] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<CustomBuild Include="D:\source_codes\zip\cpp\example-cpp11-cmake-master\CMakeLists.txt" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,300 @@ | ||
# This is the CMakeCache file. | ||
# For build in directory: d:/source_codes/zip/cpp/example-cpp11-cmake-master | ||
# It was generated by CMake: C:/msys64/mingw64/bin/cmake.exe | ||
# You can edit this file to change values found and used by cmake. | ||
# If you do not want to change any of the values, simply exit the editor. | ||
# If you do want to change a value, simply edit, save, and exit the editor. | ||
# The syntax for the file is as follows: | ||
# KEY:TYPE=VALUE | ||
# KEY is the name of a variable in the cache. | ||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. | ||
# VALUE is the current value for the KEY. | ||
|
||
######################## | ||
# EXTERNAL cache entries | ||
######################## | ||
|
||
//Build the testing tree. | ||
BUILD_TESTING:BOOL=ON | ||
|
||
//No help, variable specified on the command line. | ||
CMAKE_BUILD_TYPE:UNINITIALIZED=Debug | ||
|
||
//Semicolon separated list of supported configuration types, only | ||
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything | ||
// else will be ignored. | ||
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo | ||
|
||
//Flags used by the CXX compiler during all build types. | ||
CMAKE_CXX_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage | ||
|
||
//Flags used by the CXX compiler during DEBUG builds. | ||
CMAKE_CXX_FLAGS_DEBUG:STRING=/MDd /Zi /Ob0 /Od /RTC1 | ||
|
||
//Flags used by the CXX compiler during MINSIZEREL builds. | ||
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG | ||
|
||
//Flags used by the CXX compiler during RELEASE builds. | ||
CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG | ||
|
||
//Flags used by the CXX compiler during RELWITHDEBINFO builds. | ||
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG | ||
|
||
//Libraries linked by default with all C++ applications. | ||
CMAKE_CXX_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib | ||
|
||
//Flags used by the linker during all build types. | ||
CMAKE_EXE_LINKER_FLAGS:STRING=/machine:X86 | ||
|
||
//Flags used by the linker during DEBUG builds. | ||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL | ||
|
||
//Flags used by the linker during MINSIZEREL builds. | ||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during RELEASE builds. | ||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during RELWITHDEBINFO builds. | ||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL | ||
|
||
//No help, variable specified on the command line. | ||
CMAKE_EXPORT_COMPILE_COMMANDS:UNINITIALIZED=ON | ||
|
||
//Install path prefix, prepended onto install directories. | ||
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/Example | ||
|
||
//Path to a program. | ||
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/link.exe | ||
|
||
//Flags used by the linker during the creation of modules during | ||
// all build types. | ||
CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:X86 | ||
|
||
//Flags used by the linker during the creation of modules during | ||
// DEBUG builds. | ||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL | ||
|
||
//Flags used by the linker during the creation of modules during | ||
// MINSIZEREL builds. | ||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during the creation of modules during | ||
// RELEASE builds. | ||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during the creation of modules during | ||
// RELWITHDEBINFO builds. | ||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL | ||
|
||
//Path to a program. | ||
CMAKE_MT:FILEPATH=CMAKE_MT-NOTFOUND | ||
|
||
//Value Computed by CMake | ||
CMAKE_PROJECT_DESCRIPTION:STATIC= | ||
|
||
//Value Computed by CMake | ||
CMAKE_PROJECT_HOMEPAGE_URL:STATIC= | ||
|
||
//Value Computed by CMake | ||
CMAKE_PROJECT_NAME:STATIC=Example | ||
|
||
//RC compiler | ||
CMAKE_RC_COMPILER:FILEPATH=rc | ||
|
||
//Flags for Windows Resource Compiler during all build types. | ||
CMAKE_RC_FLAGS:STRING=-DWIN32 | ||
|
||
//Flags for Windows Resource Compiler during DEBUG builds. | ||
CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG | ||
|
||
//Flags for Windows Resource Compiler during MINSIZEREL builds. | ||
CMAKE_RC_FLAGS_MINSIZEREL:STRING= | ||
|
||
//Flags for Windows Resource Compiler during RELEASE builds. | ||
CMAKE_RC_FLAGS_RELEASE:STRING= | ||
|
||
//Flags for Windows Resource Compiler during RELWITHDEBINFO builds. | ||
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING= | ||
|
||
//Flags used by the linker during the creation of shared libraries | ||
// during all build types. | ||
CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:X86 | ||
|
||
//Flags used by the linker during the creation of shared libraries | ||
// during DEBUG builds. | ||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL | ||
|
||
//Flags used by the linker during the creation of shared libraries | ||
// during MINSIZEREL builds. | ||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during the creation of shared libraries | ||
// during RELEASE builds. | ||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO | ||
|
||
//Flags used by the linker during the creation of shared libraries | ||
// during RELWITHDEBINFO builds. | ||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL | ||
|
||
//If set, runtime paths are not added when installing shared libraries, | ||
// but are added when building. | ||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO | ||
|
||
//If set, runtime paths are not added when using shared libraries. | ||
CMAKE_SKIP_RPATH:BOOL=NO | ||
|
||
//Flags used by the linker during the creation of static libraries | ||
// during all build types. | ||
CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:X86 | ||
|
||
//Flags used by the linker during the creation of static libraries | ||
// during DEBUG builds. | ||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= | ||
|
||
//Flags used by the linker during the creation of static libraries | ||
// during MINSIZEREL builds. | ||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= | ||
|
||
//Flags used by the linker during the creation of static libraries | ||
// during RELEASE builds. | ||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= | ||
|
||
//Flags used by the linker during the creation of static libraries | ||
// during RELWITHDEBINFO builds. | ||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= | ||
|
||
//If this value is on, makefiles will be generated without the | ||
// .SILENT directive, and all commands will be echoed to the console | ||
// during the make. This is useful for debugging only. With Visual | ||
// Studio IDE projects all commands are done without /nologo. | ||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE | ||
|
||
//Enable coverage reporting | ||
CODE_COVERAGE:BOOL=ON | ||
|
||
//Value Computed by CMake | ||
Example_BINARY_DIR:STATIC=D:/source_codes/zip/cpp/example-cpp11-cmake-master | ||
|
||
//Value Computed by CMake | ||
Example_SOURCE_DIR:STATIC=D:/source_codes/zip/cpp/example-cpp11-cmake-master | ||
|
||
//No help, variable specified on the command line. | ||
gtest_build_samples:UNINITIALIZED=ON | ||
|
||
|
||
######################## | ||
# INTERNAL cache entries | ||
######################## | ||
|
||
//This is the directory where this CMakeCache.txt was created | ||
CMAKE_CACHEFILE_DIR:INTERNAL=d:/source_codes/zip/cpp/example-cpp11-cmake-master | ||
//Major version of cmake used to create the current loaded cache | ||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 | ||
//Minor version of cmake used to create the current loaded cache | ||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=17 | ||
//Patch version of cmake used to create the current loaded cache | ||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0 | ||
//Path to CMake executable. | ||
CMAKE_COMMAND:INTERNAL=C:/msys64/mingw64/bin/cmake.exe | ||
//Path to cpack program executable. | ||
CMAKE_CPACK_COMMAND:INTERNAL=C:/msys64/mingw64/bin/cpack.exe | ||
//Path to ctest program executable. | ||
CMAKE_CTEST_COMMAND:INTERNAL=C:/msys64/mingw64/bin/ctest.exe | ||
//ADVANCED property for variable: CMAKE_CXX_FLAGS | ||
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG | ||
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL | ||
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE | ||
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO | ||
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES | ||
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1 | ||
//Executable file format | ||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown | ||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS | ||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG | ||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL | ||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE | ||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO | ||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//Name of external makefile project generator. | ||
CMAKE_EXTRA_GENERATOR:INTERNAL= | ||
//Name of generator. | ||
CMAKE_GENERATOR:INTERNAL=Visual Studio 15 2017 | ||
//Generator instance identifier. | ||
CMAKE_GENERATOR_INSTANCE:INTERNAL=C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools | ||
//Name of generator platform. | ||
CMAKE_GENERATOR_PLATFORM:INTERNAL= | ||
//Name of generator toolset. | ||
CMAKE_GENERATOR_TOOLSET:INTERNAL= | ||
//Source directory with the top level CMakeLists.txt file for this | ||
// project | ||
CMAKE_HOME_DIRECTORY:INTERNAL=D:/source_codes/zip/cpp/example-cpp11-cmake-master | ||
//ADVANCED property for variable: CMAKE_LINKER | ||
CMAKE_LINKER-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS | ||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG | ||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL | ||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE | ||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO | ||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_MT | ||
CMAKE_MT-ADVANCED:INTERNAL=1 | ||
//number of local generators | ||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=3 | ||
//Platform information initialized | ||
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_COMPILER | ||
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1 | ||
CMAKE_RC_COMPILER_WORKS:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_FLAGS | ||
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG | ||
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL | ||
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE | ||
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO | ||
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//Path to CMake installation. | ||
CMAKE_ROOT:INTERNAL=C:/msys64/mingw64/share/cmake-3.17 | ||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS | ||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG | ||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL | ||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE | ||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO | ||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH | ||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_SKIP_RPATH | ||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS | ||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG | ||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL | ||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE | ||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO | ||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 | ||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE | ||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 | ||
|
Oops, something went wrong.