CI Service | Build Status |
---|---|
GitHub Actions | |
CircleCI | |
Azure Pipelines |
Example of unit testing with Google Test compiled with CMake and deployed to various continuous integration (CI) systems.
Dependency management is performed by CMake's FetchContent module, a part of CMake as of version 3.11 that works much like Google Test's ExternalProject method. This can fetch and build Google Test at a specific revision in a more concise way than scripting CI to download, extract, and build release packages, all while making it easier for somebody who downloads this project to run the tests with minimal steps.
After cloning, to build:
cmake -S . -B mybuild
cd mybuild
cmake --build .
Then to run:
ctest
Public domain-like, under CC0.