A template C++ project with Google Test and CMake. Travis CI can provide free coverage to open source projects and a basic configuration file is also included. You can find instructions on their website to set this up for your own project (less than 5 minutes to do).
The CMake files will recursively identify files to include in both src
and tests
directories so the template should work without any configuration for small projects.
git clone https://github.com/oneEdoubleD/cpp_template
cd cpp_template
mkdir build
cd build
cmake ../
make
src/ExampleProject_run
tests/ExampleProject_tst
docker build . -t example-project:1.0.0
docker run --rm example-project:1.0.0