/example-cpp11-cmake

Primary LanguageCMakeMIT LicenseMIT

Example Travis CI CMake g++ cpp11 lcov

Travis CI logo Codecov logo

Build Status codecov MIT License

Repository that serves as example how to build project with Travis CI, Cmake, lcov and CodeCov.

Table of Contents

Built With

The goal of this project is to build project with following tools:

  • C++ version: C++11
  • Build system: CMake
  • C++ compiler: g++
  • Libraries: STL only
  • Code coverage: lcov (note: it should show the code coverage is below 100%)
  • CodeCov (code coverage is measured by CodeCov).
  • Source: multiple files

Prerequisites

To build the project you need to install CMake. Here are the instructions. To create code coverage report you need to install lcov. Download lcov from here you can download latest lcov and here are instructions. This reports will be later uploaded to CodeCov servers.

Special Thanks

Goes to Richel Bilderbeek for inspiration and all work on Travis CI tutorials. Here is link to the same project with structure (except no lcov) and here is list of all his projects if you want make build with travis but with different configuration.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.